net.minecraft.advancements.critereon

public record ConsumeItemTrigger$TriggerInstance

implements SimpleCriterionTrigger$SimpleInstance

bg$a
net.minecraft.advancements.critereon.ConsumeItemTrigger$TriggerInstance
net.minecraft.class_2010$class_2012
net.minecraft.advancement.criterion.ConsumeItemCriterion$Conditions
net.minecraft.advancements.critereon.CriterionTriggerConsumeItem$a

Field summary

Modifier and TypeField
private final Optional<ContextAwarePredicate>
b
player
comp_2029
player
private final Optional<ItemPredicate>
c
item
comp_2041
item
public static final com.mojang.serialization.Codec<ConsumeItemTrigger$TriggerInstance>
a
CODEC
field_47233
CODEC

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Criterion<ConsumeItemTrigger$TriggerInstance>
b()
usedItem()
method_8827()
any()
public static Criterion<ConsumeItemTrigger$TriggerInstance>
a(jr<cxl> arg0, dhh arg1)
usedItem(HolderGetter<Item> arg0, ItemLike arg1)
method_8828(class_7871<class_1792> arg0, class_1935 arg1)
item(RegistryEntryLookup<Item> itemRegistry, ItemConvertible item)
public static Criterion<ConsumeItemTrigger$TriggerInstance>
a(cu$a arg0)
usedItem(ItemPredicate$Builder arg0)
method_35112(class_2073$class_2074 arg0)
predicate(ItemPredicate$Builder predicate)
public boolean
a(cxp arg0)
matches(ItemStack arg0)
method_8826(class_1799 arg0)
matches(ItemStack stack)
public Optional<ContextAwarePredicate>
a()
player()
comp_2029()
player()
public Optional<ItemPredicate>
c()
item()
comp_2041()
item()