Class InventoryChangeTrigger
- java.lang.Object
-
- net.minecraft.advancements.criterion.AbstractCriterionTrigger<InventoryChangeTrigger.Instance>
-
- net.minecraft.advancements.criterion.InventoryChangeTrigger
-
- All Implemented Interfaces:
ICriterionTrigger<InventoryChangeTrigger.Instance>
public class InventoryChangeTrigger extends AbstractCriterionTrigger<InventoryChangeTrigger.Instance>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InventoryChangeTrigger.Instance
-
Nested classes/interfaces inherited from interface net.minecraft.advancements.ICriterionTrigger
ICriterionTrigger.Listener<T extends ICriterionInstance>
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocation
ID
-
Constructor Summary
Constructors Constructor Description InventoryChangeTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InventoryChangeTrigger.Instance
createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
ResourceLocation
getId()
void
trigger(ServerPlayerEntity p_234803_1_, PlayerInventory p_234803_2_, ItemStack p_234803_3_)
private void
trigger(ServerPlayerEntity p_234804_1_, PlayerInventory p_234804_2_, ItemStack p_234804_3_, int p_234804_4_, int p_234804_5_, int p_234804_6_)
-
Methods inherited from class net.minecraft.advancements.criterion.AbstractCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
-
-
-
Field Detail
-
ID
private static final ResourceLocation ID
-
-
Method Detail
-
getId
public ResourceLocation getId()
-
createInstance
public InventoryChangeTrigger.Instance createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
- Specified by:
createInstance
in classAbstractCriterionTrigger<InventoryChangeTrigger.Instance>
-
trigger
public void trigger(ServerPlayerEntity p_234803_1_, PlayerInventory p_234803_2_, ItemStack p_234803_3_)
-
trigger
private void trigger(ServerPlayerEntity p_234804_1_, PlayerInventory p_234804_2_, ItemStack p_234804_3_, int p_234804_4_, int p_234804_5_, int p_234804_6_)
-
-