public class OreIngredient extends Ingredient
Modifier and Type | Field and Description |
---|---|
private ItemStack[] |
array |
private it.unimi.dsi.fastutil.ints.IntList |
itemIds |
private int |
lastSizeA |
private int |
lastSizeL |
private NonNullList<ItemStack> |
ores |
EMPTY
Constructor and Description |
---|
OreIngredient(java.lang.String ore) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ItemStack input) |
ItemStack[] |
getMatchingStacks() |
it.unimi.dsi.fastutil.ints.IntList |
getValidItemStacksPacked() |
protected void |
invalidate() |
boolean |
isSimple() |
fromItem, fromItems, fromStacks, invalidateAll, merge
private NonNullList<ItemStack> ores
private it.unimi.dsi.fastutil.ints.IntList itemIds
private ItemStack[] array
private int lastSizeA
private int lastSizeL
@Nonnull public ItemStack[] getMatchingStacks()
getMatchingStacks
in class Ingredient
@Nonnull public it.unimi.dsi.fastutil.ints.IntList getValidItemStacksPacked()
getValidItemStacksPacked
in class Ingredient
public boolean apply(@Nullable ItemStack input)
apply
in class Ingredient
protected void invalidate()
invalidate
in class Ingredient
public boolean isSimple()
isSimple
in class Ingredient