public class CompoundIngredient extends Ingredient
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundIngredient.Serializer |
Ingredient.IItemList, Ingredient.SingleItemList, Ingredient.TagListEMPTY| 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, writeToBufferprotected 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 test(@Nullable
ItemStack target)
test in interface java.util.function.Predicate<ItemStack>test in class Ingredientprotected void invalidate()
invalidate in class Ingredientpublic boolean isSimple()
isSimple in class Ingredient@Nonnull public java.util.Collection<Ingredient> getChildren()