Uses of Class
net.minecraft.world.item.crafting.Ingredient
Package
Description
-
Uses of Ingredient in net.minecraft.client.gui.screens.recipebook
Modifier and TypeFieldDescriptionprivate Ingredient
AbstractFurnaceRecipeBookComponent.fuels
private final Ingredient
GhostRecipe.GhostIngredient.ingredient
Modifier and TypeMethodDescriptionvoid
GhostRecipe.addIngredient
(Ingredient p_100144_, int p_100145_, int p_100146_) Modifier and TypeMethodDescriptionvoid
OverlayRecipeComponent.OverlayRecipeButton.addItemToSlot
(Iterator<Ingredient> p_100240_, int p_100241_, int p_100242_, int p_100243_, int p_100244_) void
RecipeBookComponent.addItemToSlot
(Iterator<Ingredient> p_100338_, int p_100339_, int p_100340_, int p_100341_, int p_100342_) ModifierConstructorDescriptionGhostIngredient
(Ingredient p_100166_, int p_100167_, int p_100168_) -
Uses of Ingredient in net.minecraft.data.recipes
Modifier and TypeFieldDescriptionprivate final Ingredient
UpgradeRecipeBuilder.addition
private final Ingredient
UpgradeRecipeBuilder.Result.addition
private final Ingredient
UpgradeRecipeBuilder.base
private final Ingredient
UpgradeRecipeBuilder.Result.base
private final Ingredient
SimpleCookingRecipeBuilder.ingredient
private final Ingredient
SimpleCookingRecipeBuilder.Result.ingredient
private final Ingredient
SingleItemRecipeBuilder.ingredient
private final Ingredient
SingleItemRecipeBuilder.Result.ingredient
Modifier and TypeFieldDescriptionprivate final List<Ingredient>
ShapelessRecipeBuilder.ingredients
private final List<Ingredient>
ShapelessRecipeBuilder.Result.ingredients
private final Map<Character,
Ingredient> ShapedRecipeBuilder.key
private final Map<Character,
Ingredient> ShapedRecipeBuilder.Result.key
Modifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.blasting
(Ingredient p_252115_, RecipeCategory p_249421_, ItemLike p_251247_, float p_250383_, int p_250476_) protected static RecipeBuilder
RecipeProvider.buttonBuilder
(ItemLike p_176659_, Ingredient p_176660_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.campfireCooking
(Ingredient p_249393_, RecipeCategory p_249372_, ItemLike p_251516_, float p_252321_, int p_251916_) protected static ShapedRecipeBuilder
RecipeProvider.chiseledBuilder
(RecipeCategory p_251755_, ItemLike p_249782_, Ingredient p_250087_) protected static ShapedRecipeBuilder
RecipeProvider.cutBuilder
(RecipeCategory p_250895_, ItemLike p_251147_, Ingredient p_251563_) ShapedRecipeBuilder.define
(Character p_126125_, Ingredient p_126126_) protected static RecipeBuilder
RecipeProvider.doorBuilder
(ItemLike p_176671_, Ingredient p_176672_) protected static RecipeBuilder
RecipeProvider.fenceBuilder
(ItemLike p_176679_, Ingredient p_176680_) protected static RecipeBuilder
RecipeProvider.fenceGateBuilder
(ItemLike p_176685_, Ingredient p_176686_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.generic
(Ingredient p_250999_, RecipeCategory p_248815_, ItemLike p_249766_, float p_251320_, int p_248693_, RecipeSerializer<? extends AbstractCookingRecipe> p_250921_) protected static RecipeBuilder
RecipeProvider.polishedBuilder
(RecipeCategory p_249131_, ItemLike p_251242_, Ingredient p_251412_) protected static RecipeBuilder
RecipeProvider.pressurePlateBuilder
(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_) ShapelessRecipeBuilder.requires
(Ingredient p_126185_) ShapelessRecipeBuilder.requires
(Ingredient p_126187_, int p_126188_) protected static RecipeBuilder
RecipeProvider.signBuilder
(ItemLike p_176727_, Ingredient p_176728_) protected static RecipeBuilder
RecipeProvider.slabBuilder
(RecipeCategory p_251707_, ItemLike p_251284_, Ingredient p_248824_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.smelting
(Ingredient p_249223_, RecipeCategory p_251240_, ItemLike p_249551_, float p_249452_, int p_250496_) static UpgradeRecipeBuilder
UpgradeRecipeBuilder.smithing
(Ingredient p_249698_, Ingredient p_249725_, RecipeCategory p_248633_, Item p_249938_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.smoking
(Ingredient p_248930_, RecipeCategory p_250319_, ItemLike p_250377_, float p_252329_, int p_250482_) protected static RecipeBuilder
RecipeProvider.stairBuilder
(ItemLike p_176711_, Ingredient p_176712_) static SingleItemRecipeBuilder
SingleItemRecipeBuilder.stonecutting
(Ingredient p_248596_, RecipeCategory p_250503_, ItemLike p_250269_) static SingleItemRecipeBuilder
SingleItemRecipeBuilder.stonecutting
(Ingredient p_251375_, RecipeCategory p_248984_, ItemLike p_250105_, int p_249506_) protected static RecipeBuilder
RecipeProvider.trapdoorBuilder
(ItemLike p_176721_, Ingredient p_176722_) protected static RecipeBuilder
RecipeProvider.wallBuilder
(RecipeCategory p_249083_, ItemLike p_250754_, Ingredient p_250311_) ModifierConstructorDescriptionResult
(ResourceLocation p_252275_, String p_248665_, CookingBookCategory p_251944_, Ingredient p_249473_, Item p_252028_, float p_249206_, int p_251002_, Advancement.Builder p_249151_, ResourceLocation p_252090_, RecipeSerializer<? extends AbstractCookingRecipe> p_249537_) Result
(ResourceLocation p_126340_, RecipeSerializer<?> p_126341_, String p_126342_, Ingredient p_126343_, Item p_126344_, int p_126345_, Advancement.Builder p_126346_, ResourceLocation p_126347_) Result
(ResourceLocation p_126408_, RecipeSerializer<?> p_126409_, Ingredient p_126410_, Ingredient p_126411_, Item p_126412_, Advancement.Builder p_126413_, ResourceLocation p_126414_) private
SimpleCookingRecipeBuilder
(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemLike p_252112_, Ingredient p_250362_, float p_251204_, int p_250189_, RecipeSerializer<? extends AbstractCookingRecipe> p_249915_) SingleItemRecipeBuilder
(RecipeCategory p_251425_, RecipeSerializer<?> p_249762_, Ingredient p_251221_, ItemLike p_251302_, int p_250964_) UpgradeRecipeBuilder
(RecipeSerializer<?> p_248989_, Ingredient p_250309_, Ingredient p_249517_, RecipeCategory p_248993_, Item p_252083_) ModifierConstructorDescriptionResult
(ResourceLocation p_249291_, Item p_250067_, int p_249914_, String p_250777_, CraftingBookCategory p_251016_, List<String> p_251191_, Map<Character, Ingredient> p_249552_, Advancement.Builder p_250121_, ResourceLocation p_250246_) Result
(ResourceLocation p_249007_, Item p_248667_, int p_249014_, String p_248592_, CraftingBookCategory p_249485_, List<Ingredient> p_252312_, Advancement.Builder p_249909_, ResourceLocation p_249109_) -
Uses of Ingredient in net.minecraft.world.entity.ai.goal
ModifierConstructorDescriptionTemptGoal
(PathfinderMob p_25939_, double p_25940_, Ingredient p_25941_, boolean p_25942_) -
Uses of Ingredient in net.minecraft.world.entity.ai.sensing
-
Uses of Ingredient in net.minecraft.world.entity.animal
Modifier and TypeFieldDescriptionprivate static final Ingredient
Chicken.FOOD_ITEMS
private static final Ingredient
Pig.FOOD_ITEMS
static final Ingredient
Turtle.FOOD_ITEMS
private static final Ingredient
Cat.TEMPT_INGREDIENT
private static final Ingredient
Ocelot.TEMPT_INGREDIENT
ModifierConstructorDescriptionCatTemptGoal
(Cat p_28219_, double p_28220_, Ingredient p_28221_, boolean p_28222_) OcelotTemptGoal
(Ocelot p_29060_, double p_29061_, Ingredient p_29062_, boolean p_29063_) -
Uses of Ingredient in net.minecraft.world.entity.animal.allay
-
Uses of Ingredient in net.minecraft.world.entity.animal.axolotl
-
Uses of Ingredient in net.minecraft.world.entity.animal.camel
-
Uses of Ingredient in net.minecraft.world.entity.animal.frog
-
Uses of Ingredient in net.minecraft.world.entity.animal.goat
-
Uses of Ingredient in net.minecraft.world.entity.animal.horse
Modifier and TypeFieldDescriptionprivate static final Ingredient
AbstractHorse.FOOD_ITEMS
private static final Ingredient
Llama.FOOD_ITEMS
-
Uses of Ingredient in net.minecraft.world.entity.monster
Modifier and TypeFieldDescriptionprivate static final Ingredient
Strider.FOOD_ITEMS
private static final Ingredient
Strider.TEMPT_ITEMS
-
Uses of Ingredient in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionprivate final List<Ingredient>
StackedContents.RecipePicker.ingredients
-
Uses of Ingredient in net.minecraft.world.entity.vehicle
-
Uses of Ingredient in net.minecraft.world.item
Modifier and TypeFieldDescriptionprivate final LazyLoadedValue<Ingredient>
ArmorMaterials.repairIngredient
private final LazyLoadedValue<Ingredient>
Tiers.repairIngredient
Modifier and TypeMethodDescriptionArmorMaterial.getRepairIngredient()
ArmorMaterials.getRepairIngredient()
Tier.getRepairIngredient()
Tiers.getRepairIngredient()
ModifierConstructorDescriptionprivate
ArmorMaterials
(String p_40474_, int p_40475_, int[] p_40476_, int p_40477_, SoundEvent p_40478_, float p_40479_, float p_40480_, Supplier<Ingredient> p_40481_) private
Tiers
(int p_43332_, int p_43333_, float p_43334_, float p_43335_, int p_43336_, Supplier<Ingredient> p_43337_) -
Uses of Ingredient in net.minecraft.world.item.alchemy
Modifier and TypeFieldDescriptionprivate static final List<Ingredient>
PotionBrewing.ALLOWED_CONTAINERS
ModifierConstructorDescriptionMix
(IForgeRegistry<T> registry, T p_43536_, Ingredient p_43537_, T p_43538_) -
Uses of Ingredient in net.minecraft.world.item.crafting
Modifier and TypeFieldDescription(package private) final Ingredient
UpgradeRecipe.addition
(package private) final Ingredient
UpgradeRecipe.base
static final Ingredient
Ingredient.EMPTY
private static final Ingredient
FireworkStarRecipe.FLICKER_INGREDIENT
private static final Ingredient
FireworkRocketRecipe.GUNPOWDER_INGREDIENT
private static final Ingredient
FireworkStarRecipe.GUNPOWDER_INGREDIENT
protected final Ingredient
AbstractCookingRecipe.ingredient
protected final Ingredient
SingleItemRecipe.ingredient
private static final Ingredient
FireworkRocketRecipe.PAPER_INGREDIENT
private static final Ingredient
FireworkStarRecipe.SHAPE_INGREDIENT
private static final Ingredient
FireworkRocketRecipe.STAR_INGREDIENT
private static final Ingredient
FireworkStarFadeRecipe.STAR_INGREDIENT
private static final Ingredient
FireworkStarRecipe.TRAIL_INGREDIENT
Modifier and TypeFieldDescription(package private) final NonNullList<Ingredient>
ShapelessRecipe.ingredients
(package private) final NonNullList<Ingredient>
ShapedRecipe.recipeItems
Modifier and TypeMethodDescriptionstatic Ingredient
Ingredient.fromJson
(com.google.gson.JsonElement p_43918_) static Ingredient
Ingredient.fromNetwork
(FriendlyByteBuf p_43941_) static Ingredient
Ingredient.fromValues
(Stream<? extends Ingredient.Value> p_43939_) static Ingredient
Ingredient.merge
(Collection<Ingredient> parts) static Ingredient
Ingredient.of()
static Ingredient
static Ingredient
static Ingredient
static Ingredient
Modifier and TypeMethodDescription(package private) static NonNullList<Ingredient>
ShapedRecipe.dissolvePattern
(String[] p_44203_, Map<String, Ingredient> p_44204_, int p_44205_, int p_44206_) AbstractCookingRecipe.getIngredients()
default NonNullList<Ingredient>
Recipe.getIngredients()
ShapedRecipe.getIngredients()
ShapelessRecipe.getIngredients()
SingleItemRecipe.getIngredients()
IIngredientSerializer<? extends Ingredient>
Ingredient.getSerializer()
private static NonNullList<Ingredient>
ShapelessRecipe.Serializer.itemsFromJson
(com.google.gson.JsonArray p_44276_) (package private) static Map<String,
Ingredient> ShapedRecipe.keyFromJson
(com.google.gson.JsonObject p_44211_) Modifier and TypeMethodDescriptionSimpleCookingSerializer.CookieBaker.create
(ResourceLocation p_44353_, String p_44354_, CookingBookCategory p_249487_, Ingredient p_44355_, ItemStack p_44356_, float p_44357_, int p_44358_) SingleItemRecipe.Serializer.SingleItemMaker.create
(ResourceLocation p_44455_, String p_44456_, Ingredient p_44457_, ItemStack p_44458_) Modifier and TypeMethodDescription(package private) static NonNullList<Ingredient>
ShapedRecipe.dissolvePattern
(String[] p_44203_, Map<String, Ingredient> p_44204_, int p_44205_, int p_44206_) static Ingredient
Ingredient.merge
(Collection<Ingredient> parts) ModifierConstructorDescriptionAbstractCookingRecipe
(RecipeType<?> p_250197_, ResourceLocation p_249379_, String p_249518_, CookingBookCategory p_250891_, Ingredient p_251354_, ItemStack p_252185_, float p_252165_, int p_250256_) BlastingRecipe
(ResourceLocation p_249728_, String p_251053_, CookingBookCategory p_249936_, Ingredient p_251550_, ItemStack p_251027_, float p_250843_, int p_249841_) CampfireCookingRecipe
(ResourceLocation p_249468_, String p_250140_, CookingBookCategory p_251808_, Ingredient p_249826_, ItemStack p_251839_, float p_251432_, int p_251471_) SingleItemRecipe
(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, ResourceLocation p_44418_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) SmeltingRecipe
(ResourceLocation p_249157_, String p_250200_, CookingBookCategory p_251114_, Ingredient p_250340_, ItemStack p_250306_, float p_249577_, int p_250030_) SmokingRecipe
(ResourceLocation p_249711_, String p_249312_, CookingBookCategory p_251017_, Ingredient p_252345_, ItemStack p_250002_, float p_250535_, int p_251222_) StonecutterRecipe
(ResourceLocation p_44478_, String p_44479_, Ingredient p_44480_, ItemStack p_44481_) UpgradeRecipe
(ResourceLocation p_44523_, Ingredient p_44524_, Ingredient p_44525_, ItemStack p_44526_) ModifierConstructorDescriptionShapedRecipe
(ResourceLocation p_250963_, String p_250221_, CraftingBookCategory p_250716_, int p_251480_, int p_251980_, NonNullList<Ingredient> p_252150_, ItemStack p_248581_) ShapelessRecipe
(ResourceLocation p_251840_, String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_) -
Uses of Ingredient in net.minecraftforge.common
Modifier and TypeFieldDescriptionprivate final @NotNull Supplier<Ingredient>
ForgeTier.repairIngredient
ModifierConstructorDescriptionForgeTier
(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, @NotNull TagKey<Block> tag, @NotNull Supplier<Ingredient> repairIngredient) -
Uses of Ingredient in net.minecraftforge.common.brewing
Modifier and TypeFieldDescriptionprivate final @NotNull Ingredient
BrewingRecipe.ingredient
private final @NotNull Ingredient
BrewingRecipe.input
Modifier and TypeMethodDescriptionstatic boolean
BrewingRecipeRegistry.addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a recipe to the registry.ModifierConstructorDescriptionBrewingRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of Ingredient in net.minecraftforge.common.crafting
Modifier and TypeClassDescriptionclass
Extension ofIngredient
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 ingredientsclass
Ingredient that matches if any of the child ingredients matchclass
Ingredient that matches everything from the first ingredient that is not included in the second ingredientclass
Ingredient that matches if all child ingredients matchclass
Ingredient that matches the given items, performing a partial NBT match.class
Ingredient that matches the given stack, performing an exact NBT match.Modifier and TypeFieldDescriptionprivate final Ingredient
DifferenceIngredient.base
private final Ingredient
DifferenceIngredient.subtracted
Modifier and TypeFieldDescriptionprivate List<Ingredient>
CompoundIngredient.children
private final List<Ingredient>
IntersectionIngredient.children
Modifier and TypeMethodDescriptionstatic <T extends Ingredient>
IIngredientSerializer<T>CraftingHelper.register
(ResourceLocation key, IIngredientSerializer<T> serializer) static <T extends Ingredient>
voidCraftingHelper.write
(FriendlyByteBuf buffer, T ingredient) Modifier and TypeMethodDescriptionstatic Ingredient
AbstractIngredient.fromJson
(@Nullable com.google.gson.JsonElement json) Deprecated.static Ingredient
AbstractIngredient.fromNetwork
(FriendlyByteBuf buffer) Deprecated.static Ingredient
AbstractIngredient.fromValues
(Stream<? extends Ingredient.Value> values) Deprecated.static Ingredient
CraftingHelper.getIngredient
(com.google.gson.JsonElement json) static Ingredient
CraftingHelper.getIngredient
(ResourceLocation type, FriendlyByteBuf buffer) static Ingredient
AbstractIngredient.of()
Deprecated.useof()
static Ingredient
Deprecated.useof(Stream)
(Stream)}static Ingredient
Deprecated.useof(TagKey)
(Stream)}static Ingredient
Deprecated.useof(ItemStack...)
(Stream)}static Ingredient
Deprecated.useof(ItemLike...)
(Stream)}static Ingredient
CompoundIngredient.of
(Ingredient... children) Creates a compound ingredient from the given list of ingredientsstatic Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientVanillaIngredientSerializer.parse
(com.google.gson.JsonObject json) VanillaIngredientSerializer.parse
(FriendlyByteBuf buffer) Modifier and TypeMethodDescription@NotNull Collection<Ingredient>
CompoundIngredient.getChildren()
abstract IIngredientSerializer<? extends Ingredient>
AbstractIngredient.getSerializer()
IIngredientSerializer<? extends Ingredient>
CompoundIngredient.getSerializer()
IIngredientSerializer<? extends Ingredient>
PartialNBTIngredient.getSerializer()
IIngredientSerializer<? extends Ingredient>
StrictNBTIngredient.getSerializer()
Modifier and TypeMethodDescriptionstatic Ingredient
CompoundIngredient.of
(Ingredient... children) Creates a compound ingredient from the given list of ingredientsstatic DifferenceIngredient
DifferenceIngredient.of
(Ingredient base, Ingredient subtracted) Gets the difference from the two ingredientsstatic Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientvoid
VanillaIngredientSerializer.write
(FriendlyByteBuf buffer, Ingredient ingredient) ModifierConstructorDescriptionprotected
DifferenceIngredient
(Ingredient base, Ingredient subtracted) ModifierConstructorDescriptionprotected
CompoundIngredient
(List<Ingredient> children) protected
IntersectionIngredient
(List<Ingredient> children) -
Uses of Ingredient in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionprivate @Nullable Ingredient
ForgeRecipeProvider.enhance
(ResourceLocation name, Ingredient vanilla) Modifier and TypeMethodDescriptionprivate @Nullable Ingredient
ForgeRecipeProvider.enhance
(ResourceLocation name, Ingredient vanilla) -
Uses of Ingredient in net.minecraftforge.debug.recipe.recipebook
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Ingredient>
RecipeBookTestRecipe.Ingredients.INGREDIENT_CODEC
private final NonNullList<Ingredient>
RecipeBookTestRecipe.items
private final Map<String,
Ingredient> RecipeBookTestRecipe.Ingredients.recipe
The field for therecipe
record component.Modifier and TypeMethodDescriptionRecipeBookTestRecipe.getIngredients()
RecipeBookTestRecipe.Ingredients.recipe()
Returns the value of therecipe
record component.ModifierConstructorDescriptionIngredients
(String group, List<String> pattern, Map<String, Ingredient> recipe, ItemStack result) Creates an instance of aIngredients
record class. -
Uses of Ingredient in net.minecraftforge.debug.world.item
Modifier and TypeFieldDescriptionprivate static final Ingredient
IngredientInvalidationTest.TEST_INGREDIENT
fromJson(JsonElement)
(Stream)}