public class Ingredient extends java.lang.Object implements com.google.common.base.Predicate<ItemStack>
Modifier and Type | Field and Description |
---|---|
static Ingredient |
EMPTY |
Modifier | Constructor and Description |
---|---|
protected |
Ingredient(int size) |
protected |
Ingredient(ItemStack... p_i47503_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ItemStack p_apply_1_) |
static Ingredient |
fromItem(Item p_193367_0_) |
static Ingredient |
fromItems(Item... items) |
static Ingredient |
fromStacks(ItemStack... stacks) |
ItemStack[] |
getMatchingStacks() |
it.unimi.dsi.fastutil.ints.IntList |
getValidItemStacksPacked() |
protected void |
invalidate() |
static void |
invalidateAll() |
public static final Ingredient EMPTY
protected Ingredient(int size)
protected Ingredient(ItemStack... p_i47503_1_)
public ItemStack[] getMatchingStacks()
public boolean apply(@Nullable ItemStack p_apply_1_)
public it.unimi.dsi.fastutil.ints.IntList getValidItemStacksPacked()
public static void invalidateAll()
protected void invalidate()
public static Ingredient fromItem(Item p_193367_0_)
public static Ingredient fromItems(Item... items)
public static Ingredient fromStacks(ItemStack... stacks)