Class AbstractIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
- Direct Known Subclasses:
- CompoundIngredient,- DifferenceIngredient,- IntersectionIngredient,- PartialNBTIngredient,- StrictNBTIngredient
Extension of 
Ingredient which makes most methods custom ingredients need to implement abstract, and removes the static constructors
 Mods are encouraged to extend this class for their custom ingredients- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.crafting.IngredientIngredient.ItemValue, Ingredient.TagValue, Ingredient.Value
- 
Field SummaryFields inherited from class net.minecraft.world.item.crafting.IngredientCODEC, CODEC_NONEMPTY, EMPTY, VANILLA_CODEC
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedEmpty constructor, for the sake of dynamic ingredientsprotectedAbstractIngredient(Stream<? extends Ingredient.Value> values) Value constructor, for ingredients that have some vanilla representation
- 
Method SummaryModifier and TypeMethodDescriptionstatic IngredientfromNetwork(FriendlyByteBuf buffer) Deprecated.static IngredientfromValues(Stream<? extends Ingredient.Value> values) Deprecated.abstract booleanisSimple()static Ingredientof()Deprecated.useIngredient.of()static IngredientDeprecated.useIngredient.of(Stream)(Stream)}static IngredientDeprecated.useIngredient.of(TagKey)(Stream)}static IngredientDeprecated.useIngredient.of(ItemStack...)(Stream)}static IngredientDeprecated.useIngredient.of(ItemLike...)(Stream)}abstract IIngredientSerializer<? extends Ingredient>Methods inherited from class net.minecraft.world.item.crafting.IngredientcheckInvalidation, equals, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, test, toJson, toNetwork
- 
Constructor Details- 
AbstractIngredientprotected AbstractIngredient()Empty constructor, for the sake of dynamic ingredients
- 
AbstractIngredientValue constructor, for ingredients that have some vanilla representation
 
- 
- 
Method Details- 
isSimplepublic abstract boolean isSimple()- Overrides:
- isSimplein class- Ingredient
 
- 
serializer- Overrides:
- serializerin class- Ingredient
 
- 
fromValuesDeprecated.
- 
ofDeprecated.useIngredient.of()
- 
ofDeprecated.useIngredient.of(ItemLike...)(Stream)}
- 
ofDeprecated.useIngredient.of(ItemStack...)(Stream)}
- 
ofDeprecated.useIngredient.of(Stream)(Stream)}
- 
ofDeprecated.useIngredient.of(TagKey)(Stream)}
- 
fromNetworkDeprecated.
 
- 
Ingredient.fromNetwork(FriendlyByteBuf)