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(EntityPredicate.class_5258 class_5258,
NumberRange.IntRange intRange,
NumberRange.IntRange intRange2,
NumberRange.IntRange intRange3,
ItemPredicate[] itemPredicate) |
| 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) |
JsonObject |
toJson(class_5267 class_5267) |
getId, method_27790, toStringprivate final NumberRange.IntRange occupied
private final NumberRange.IntRange full
private final NumberRange.IntRange empty
private final ItemPredicate[] items
public Conditions(EntityPredicate.class_5258 class_5258, NumberRange.IntRange intRange, NumberRange.IntRange intRange2, NumberRange.IntRange intRange3, ItemPredicate[] itemPredicate)
public static InventoryChangedCriterion.Conditions items(ItemPredicate[] items)
public static InventoryChangedCriterion.Conditions items(ItemConvertible[] items)
public JsonObject toJson(class_5267 class_5267)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditionspublic boolean matches(PlayerInventory playerInventory, ItemStack itemStack, int int2, int int3, int int4)