net.minecraft.advancements.critereon

public record TradeTrigger$TriggerInstance

implements SimpleCriterionTrigger$SimpleInstance

eg$a
net.minecraft.advancements.critereon.TradeTrigger$TriggerInstance
net.minecraft.class_2140$class_2142
net.minecraft.advancement.criterion.VillagerTradeCriterion$Conditions
net.minecraft.src.C_2476_$C_2477_
net.minecraft.advancements.critereon.CriterionTriggerVillagerTrade$a

Field summary

Modifier and TypeField
private final Optional<ContextAwarePredicate>
b
player
comp_2029
player
f_302976_
private final Optional<ContextAwarePredicate>
c
villager
comp_2097
villager
f_70976_
private final Optional<ItemPredicate>
d
item
comp_2098
item
f_70977_
public static final com.mojang.serialization.Codec<TradeTrigger$TriggerInstance>
a
CODEC
field_47347
CODEC
f_302548_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Criterion<TradeTrigger$TriggerInstance>
b()
tradedWithVillager()
method_9153()
any()
m_70987_()
public static Criterion<TradeTrigger$TriggerInstance>
a(bv$a arg0)
tradedWithVillager(EntityPredicate$Builder arg0)
method_38914(class_2048$class_2049 arg0)
create(EntityPredicate$Builder playerPredicate)
m_191436_(C_1147_$C_1149_ p_191437_)
public boolean
a(err arg0, cuq arg1)
matches(LootContext arg0, ItemStack arg1)
method_9154(class_47 arg0, class_1799 arg1)
matches(LootContext villager, ItemStack stack)
m_70984_(C_2811_ p_70986_, C_1391_ arg1)
public void
a(bh arg0)
validate(CriterionValidator arg0)
method_54938(class_8944 arg0)
validate(LootContextPredicateValidator arg0)
m_7683_(C_302068_ arg0)
public Optional<ContextAwarePredicate>
a()
player()
comp_2029()
player()
m_295156_()
public Optional<ContextAwarePredicate>
c()
villager()
comp_2097()
villager()
f_70976_()
public Optional<ItemPredicate>
d()
item()
comp_2098()
item()
f_70977_()