public static class InventoryChangeTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private MinMaxBounds.IntBound |
empty |
private MinMaxBounds.IntBound |
full |
private ItemPredicate[] |
items |
private MinMaxBounds.IntBound |
occupied |
Constructor and Description |
---|
Instance(MinMaxBounds.IntBound p_i49710_1_,
MinMaxBounds.IntBound p_i49710_2_,
MinMaxBounds.IntBound p_i49710_3_,
ItemPredicate[] p_i49710_4_) |
Modifier and Type | Method and Description |
---|---|
static InventoryChangeTrigger.Instance |
forItems(IItemProvider... p_203922_0_) |
static InventoryChangeTrigger.Instance |
forItems(ItemPredicate... p_203923_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(PlayerInventory inventory) |
getId, toString
private final MinMaxBounds.IntBound occupied
private final MinMaxBounds.IntBound full
private final MinMaxBounds.IntBound empty
private final ItemPredicate[] items
public Instance(MinMaxBounds.IntBound p_i49710_1_, MinMaxBounds.IntBound p_i49710_2_, MinMaxBounds.IntBound p_i49710_3_, ItemPredicate[] p_i49710_4_)
public static InventoryChangeTrigger.Instance forItems(ItemPredicate... p_203923_0_)
public static InventoryChangeTrigger.Instance forItems(IItemProvider... p_203922_0_)
public com.google.gson.JsonElement serialize()
public boolean test(PlayerInventory inventory)