Package net.minecraft.recipe
Class Ingredient
java.lang.Object
net.minecraft.recipe.Ingredient
public final class Ingredient extends Object implements Predicate<ItemStack>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceIngredient.Entry(package private) static classIngredient.StackEntry(package private) static classIngredient.TagEntry -
Field Summary
Fields Modifier and Type Field Description static IngredientEMPTYprivate Ingredient.Entry[]entriesprivate IntListidsprivate ItemStack[]matchingStacks -
Constructor Summary
Constructors Modifier Constructor Description privateIngredient(Stream<? extends Ingredient.Entry> entries) -
Method Summary
Modifier and Type Method Description private voidcacheMatchingStacks()private static Ingredient.EntryentryFromJson(JsonObject json)static IngredientfromJson(JsonElement json)static IngredientfromPacket(PacketByteBuf buf)static IngredientfromTag(Tag<Item> tag)IntListgetIds()ItemStack[]getMatchingStacksClient()booleanisEmpty()private static IngredientofEntries(Stream<? extends Ingredient.Entry> entries)static IngredientofItems(ItemConvertible[] items)static IngredientofStacks(Stream<ItemStack> stacks)static IngredientofStacks(ItemStack[] stacks)booleantest(ItemStack itemStack)JsonElementtoJson()voidwrite(PacketByteBuf buf)
-
Field Details
-
EMPTY
-
entries
-
matchingStacks
-
ids
-
-
Constructor Details
-
Ingredient
-
-
Method Details