Class InventoryChangeTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.InventoryChangeTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- InventoryChangeTrigger
public static class InventoryChangeTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate[]
predicates
private MinMaxBounds.IntBound
slotsEmpty
private MinMaxBounds.IntBound
slotsFull
private MinMaxBounds.IntBound
slotsOccupied
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InventoryChangeTrigger.Instance
hasItems(ItemPredicate... p_203923_0_)
static InventoryChangeTrigger.Instance
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 Detail
-
slotsOccupied
private final MinMaxBounds.IntBound slotsOccupied
-
slotsFull
private final MinMaxBounds.IntBound slotsFull
-
slotsEmpty
private final MinMaxBounds.IntBound slotsEmpty
-
predicates
private final ItemPredicate[] predicates
-
-
Constructor Detail
-
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 Detail
-
hasItems
public static InventoryChangeTrigger.Instance hasItems(ItemPredicate... p_203923_0_)
-
hasItems
public static InventoryChangeTrigger.Instance hasItems(IItemProvider... p_203922_0_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- 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_)
-
-