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 interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(com.google.gson.JsonObject p_43168_, EntityPredicate.Composite p_43169_, DeserializationContext p_43170_)
getId()
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
-
Field Details
-
ID
-
-
Constructor Details
-
InventoryChangeTrigger
public InventoryChangeTrigger()
-
-
Method Details
-
getId
-
createInstance
public InventoryChangeTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_43168_, EntityPredicate.Composite p_43169_, DeserializationContext p_43170_)- 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_)
-