net.minecraft.advancements.critereon

public record PlayerInteractTrigger$TriggerInstance

implements SimpleCriterionTrigger$SimpleInstance

dr$a
net.minecraft.advancements.critereon.PlayerInteractTrigger$TriggerInstance
net.minecraft.class_5409$class_5410
net.minecraft.advancement.criterion.PlayerInteractedWithEntityCriterion$Conditions
net.minecraft.advancements.critereon.CriterionTriggerPlayerInteractedWithEntity$a

Field summary

Modifier and TypeField
private final Optional<ContextAwarePredicate>
b
player
comp_2029
player
private final Optional<ItemPredicate>
c
item
comp_2079
item
private final Optional<ContextAwarePredicate>
d
entity
comp_2080
entity
public static final com.mojang.serialization.Codec<PlayerInteractTrigger$TriggerInstance>
a
CODEC
field_47318
CODEC

Constructor summary

ModifierConstructor
public (Optional<ContextAwarePredicate> playerPredicate, Optional<ItemPredicate> item, Optional<ContextAwarePredicate> entity)

Method summary

Modifier and TypeMethod
public static Criterion<PlayerInteractTrigger$TriggerInstance>
a(Optional<bi> arg0, cv$a arg1, Optional<bi> arg2)
itemUsedOnEntity(Optional<ContextAwarePredicate> arg0, ItemPredicate$Builder arg1, Optional<ContextAwarePredicate> arg2)
method_30099(Optional<class_5258> arg0, class_2073$class_2074 arg1, Optional<class_5258> arg2)
create(Optional<LootContextPredicate> playerPredicate, ItemPredicate$Builder item, Optional<LootContextPredicate> entity)
public static Criterion<PlayerInteractTrigger$TriggerInstance>
a(cv$a arg0, Optional<bi> arg1)
itemUsedOnEntity(ItemPredicate$Builder arg0, Optional<ContextAwarePredicate> arg1)
method_43278(class_2073$class_2074 arg0, Optional<class_5258> arg1)
create(ItemPredicate$Builder item, Optional<LootContextPredicate> entity)
public boolean
a(cwq arg0, evs arg1)
matches(ItemStack arg0, LootContext arg1)
method_30100(class_1799 arg0, class_47 arg1)
test(ItemStack stack, LootContext entity)
public void
a(bj arg0)
validate(CriterionValidator arg0)
method_54938(class_8944 arg0)
validate(LootContextPredicateValidator arg0)
public Optional<ContextAwarePredicate>
a()
player()
comp_2029()
player()
public Optional<ItemPredicate>
b()
item()
comp_2079()
item()
public Optional<ContextAwarePredicate>
c()
entity()
comp_2080()
entity()