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 class net.minecraft.advancements.critereon.SimpleCriterionTrigger
SimpleCriterionTrigger.SimpleInstance
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_286317_, Optional<ContextAwarePredicate> p_299121_, DeserializationContext p_286251_) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.advancements.CriterionTrigger
createCriterion
-
Constructor Details
-
TradeTrigger
public TradeTrigger()
-
-
Method Details
-
createInstance
public TradeTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286317_, Optional<ContextAwarePredicate> p_299121_, DeserializationContext p_286251_) - Specified by:
createInstance
in classSimpleCriterionTrigger<TradeTrigger.TriggerInstance>
-
trigger
-