Class TradeTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<TradeTrigger.TriggerInstance>
net.minecraft.advancements.critereon.TradeTrigger
- All Implemented Interfaces:
CriterionTrigger<TradeTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(com.google.gson.JsonObject p_70964_, EntityPredicate.Composite p_70965_, DeserializationContext p_70966_)
getId()
void
trigger(ServerPlayer p_70960_, AbstractVillager p_70961_, ItemStack p_70962_)
Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
TradeTrigger
public TradeTrigger()
-
-
Method Details
-
getId
-
createInstance
public TradeTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_70964_, EntityPredicate.Composite p_70965_, DeserializationContext p_70966_)- Specified by:
createInstance
in classSimpleCriterionTrigger<TradeTrigger.TriggerInstance>
-
trigger
-