public class CompoundIngredient extends Ingredient
Modifier and Type | Class and Description |
---|---|
static class |
CompoundIngredient.Serializer |
Ingredient.IItemList, Ingredient.SingleItemList, Ingredient.TagList
EMPTY
Modifier | Constructor and Description |
---|---|
protected |
CompoundIngredient(java.util.Collection<Ingredient> children) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Ingredient> |
getChildren() |
ItemStack[] |
getMatchingStacks() |
it.unimi.dsi.fastutil.ints.IntList |
getValidItemStacksPacked() |
protected void |
invalidate() |
boolean |
isSimple() |
boolean |
test(ItemStack target) |
deserializeItemList, fromBuffer, fromItemListStream, fromItems, fromJson, fromStacks, fromTag, getSerializer, hasNoMatchingItems, invalidateAll, isVanilla, merge, toJson, writeToBuffer
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 Ingredient
public boolean test(@Nullable ItemStack target)
test
in interface java.util.function.Predicate<ItemStack>
test
in class Ingredient
protected void invalidate()
invalidate
in class Ingredient
public boolean isSimple()
isSimple
in class Ingredient
@Nonnull public java.util.Collection<Ingredient> getChildren()