Class InventoryChangeTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.InventoryChangeTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- InventoryChangeTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ItemPredicate[]
private final MinMaxBounds.IntBound
private final MinMaxBounds.IntBound
private final MinMaxBounds.IntBound
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231597_1_, MinMaxBounds.IntBound p_i231597_2_, MinMaxBounds.IntBound p_i231597_3_, MinMaxBounds.IntBound p_i231597_4_, ItemPredicate[] p_i231597_5_) -
Method Summary
Modifier and TypeMethodDescriptionhasItems
(ItemPredicate... p_203923_0_) hasItems
(IItemProvider... p_203922_0_) boolean
matches
(PlayerInventory p_234805_1_, ItemStack p_234805_2_, int p_234805_3_, int p_234805_4_, int p_234805_5_) com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
slotsOccupied
-
slotsFull
-
slotsEmpty
-
predicates
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231597_1_, MinMaxBounds.IntBound p_i231597_2_, MinMaxBounds.IntBound p_i231597_3_, MinMaxBounds.IntBound p_i231597_4_, ItemPredicate[] p_i231597_5_)
-
-
Method Details
-
hasItems
-
hasItems
-
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
matches
public boolean matches(PlayerInventory p_234805_1_, ItemStack p_234805_2_, int p_234805_3_, int p_234805_4_, int p_234805_5_)
-