public static class InventoryChangedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private NumberRange.IntRange |
empty |
private NumberRange.IntRange |
full |
private ItemPredicate[] |
items |
private NumberRange.IntRange |
occupied |
Constructor and Description |
---|
Conditions(NumberRange.IntRange occupied,
NumberRange.IntRange full,
NumberRange.IntRange empty,
ItemPredicate[] items) |
Modifier and Type | Method and Description |
---|---|
static InventoryChangedCriterion.Conditions |
items(ItemConvertible[] items) |
static InventoryChangedCriterion.Conditions |
items(ItemPredicate[] items) |
boolean |
matches(PlayerInventory playerInventory,
ItemStack itemStack,
int int2,
int int3,
int int4) |
JsonElement |
toJson() |
getId, toString
private final NumberRange.IntRange occupied
private final NumberRange.IntRange full
private final NumberRange.IntRange empty
private final ItemPredicate[] items
public Conditions(NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty, ItemPredicate[] items)
public static InventoryChangedCriterion.Conditions items(ItemPredicate[] items)
public static InventoryChangedCriterion.Conditions items(ItemConvertible[] items)
public JsonElement toJson()
public boolean matches(PlayerInventory playerInventory, ItemStack itemStack, int int2, int int3, int int4)