public final class QueryOperationTypes extends Object
Modifier and Type | Field and Description |
---|---|
static QueryOperationType<InventoryProperty<?,?>> |
INVENTORY_PROPERTY
Tests based on an inventory property present on the target inventory.
|
static QueryOperationType<Translation> |
INVENTORY_TRANSLATION
Tests based on the title of the inventory.
|
static QueryOperationType<Class<? extends Inventory>> |
INVENTORY_TYPE
Tests based on the class of the inventory.
|
static QueryOperationType<Predicate<ItemStack>> |
ITEM_STACK_CUSTOM
Allows a custom condition for the items contained within an item stack.
|
static QueryOperationType<ItemStack> |
ITEM_STACK_EXACT
Tests for an exact match of the item stack contained in each slot.
|
static QueryOperationType<ItemStack> |
ITEM_STACK_IGNORE_QUANTITY
Tests for an exact match of the item stack contained in each slot, with
the exception of the quantity.
|
static QueryOperationType<ItemType> |
ITEM_TYPE
Tests for a match of the type of item contained in each slot.
|
static QueryOperationType<Class<?>> |
TYPE
Tests based on the class of the inventory.
|
public static final QueryOperationType<InventoryProperty<?,?>> INVENTORY_PROPERTY
public static final QueryOperationType<Translation> INVENTORY_TRANSLATION
InventoryTitle
,
Nameable.getName()
public static final QueryOperationType<Class<? extends Inventory>> INVENTORY_TYPE
public static final QueryOperationType<Predicate<ItemStack>> ITEM_STACK_CUSTOM
public static final QueryOperationType<ItemStack> ITEM_STACK_EXACT
Generally uses ItemStack
's #equals
method.
public static final QueryOperationType<ItemStack> ITEM_STACK_IGNORE_QUANTITY
ItemStack.equalTo(ItemStack)
public static final QueryOperationType<ItemType> ITEM_TYPE
ItemStack.getType()
public static final QueryOperationType<Class<?>> TYPE