net.minecraft.advancements.critereon

public record TradeTrigger$TriggerInstance

implements SimpleCriterionTrigger$SimpleInstance

ej$a
net.minecraft.advancements.critereon.TradeTrigger$TriggerInstance
net.minecraft.class_2140$class_2142
net.minecraft.advancement.criterion.VillagerTradeCriterion$Conditions
net.minecraft.advancements.critereon.CriterionTriggerVillagerTrade$a

Field summary

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

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()
public static Criterion<TradeTrigger$TriggerInstance>
a(bw$a arg0)
tradedWithVillager(EntityPredicate$Builder arg0)
method_38914(class_2048$class_2049 arg0)
create(EntityPredicate$Builder playerPredicate)
public boolean
a(ewp arg0, cxp arg1)
matches(LootContext arg0, ItemStack arg1)
method_9154(class_47 arg0, class_1799 arg1)
matches(LootContext villager, ItemStack stack)
public void
a(bi arg0)
validate(CriterionValidator arg0)
method_54938(class_8944 arg0)
validate(LootContextPredicateValidator arg0)
public Optional<ContextAwarePredicate>
a()
player()
comp_2029()
player()
public Optional<ContextAwarePredicate>
c()
villager()
comp_2097()
villager()
public Optional<ItemPredicate>
d()
item()
comp_2098()
item()