Class InventoryChangeTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<InventoryChangeTrigger.TriggerInstance>
net.minecraft.advancements.critereon.InventoryChangeTrigger
- All Implemented Interfaces:
CriterionTrigger<InventoryChangeTrigger.TriggerInstance>
public class InventoryChangeTrigger
extends SimpleCriterionTrigger<InventoryChangeTrigger.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_286735_, Optional<ContextAwarePredicate> p_300177_, DeserializationContext p_286698_) void
trigger
(ServerPlayer p_43150_, Inventory p_43151_, ItemStack p_43152_) private void
trigger
(ServerPlayer p_43154_, Inventory p_43155_, ItemStack p_43156_, int p_43157_, int p_43158_, int p_43159_) 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
-
InventoryChangeTrigger
public InventoryChangeTrigger()
-
-
Method Details
-
createInstance
public InventoryChangeTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286735_, Optional<ContextAwarePredicate> p_300177_, DeserializationContext p_286698_) - Specified by:
createInstance
in classSimpleCriterionTrigger<InventoryChangeTrigger.TriggerInstance>
-
trigger
-
trigger
private void trigger(ServerPlayer p_43154_, Inventory p_43155_, ItemStack p_43156_, int p_43157_, int p_43158_, int p_43159_)
-