public class CompoundIngredient extends Ingredient
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<Ingredient> |
children |
private boolean |
isSimple |
private it.unimi.dsi.fastutil.ints.IntList |
itemIds |
private ItemStack[] |
stacks |
EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
CompoundIngredient(java.util.Collection<Ingredient> children) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(ItemStack target) |
java.util.Collection<Ingredient> |
getChildren() |
ItemStack[] |
getMatchingStacks() |
it.unimi.dsi.fastutil.ints.IntList |
getValidItemStacksPacked() |
protected void |
invalidate() |
boolean |
isSimple() |
fromItem, fromItems, fromStacks, invalidateAll, mergeprivate java.util.Collection<Ingredient> children
private ItemStack[] stacks
private it.unimi.dsi.fastutil.ints.IntList itemIds
private final boolean isSimple
protected CompoundIngredient(java.util.Collection<Ingredient> children)
@Nonnull public ItemStack[] getMatchingStacks()
getMatchingStacks in class Ingredient@Nonnull public it.unimi.dsi.fastutil.ints.IntList getValidItemStacksPacked()
getValidItemStacksPacked in class Ingredientpublic boolean apply(@Nullable
ItemStack target)
apply in class Ingredientprotected void invalidate()
invalidate in class Ingredientpublic boolean isSimple()
isSimple in class Ingredient@Nonnull public java.util.Collection<Ingredient> getChildren()