public class Ingredient extends java.lang.Object implements com.google.common.base.Predicate<ItemStack>
Modifier and Type | Field and Description |
---|---|
static Ingredient |
EMPTY |
private static java.util.Set<Ingredient> |
INSTANCES |
private boolean |
isSimple |
private ItemStack[] |
matchingStacks |
private ItemStack[] |
matchingStacksExploded |
private it.unimi.dsi.fastutil.ints.IntList |
matchingStacksPacked |
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() |
boolean |
isSimple() |
static Ingredient |
merge(java.util.Collection<Ingredient> parts) |
private static final java.util.Set<Ingredient> INSTANCES
public static final Ingredient EMPTY
private final ItemStack[] matchingStacks
private final ItemStack[] matchingStacksExploded
private it.unimi.dsi.fastutil.ints.IntList matchingStacksPacked
private final boolean isSimple
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)
public static Ingredient merge(java.util.Collection<Ingredient> parts)
public boolean isSimple()