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
SmithingTransformRecipeBuilder.addition
private final Ingredient
SmithingTrimRecipeBuilder.addition
private final Ingredient
SmithingTransformRecipeBuilder.base
private final Ingredient
SmithingTrimRecipeBuilder.base
private final Ingredient
SimpleCookingRecipeBuilder.ingredient
private final Ingredient
SingleItemRecipeBuilder.ingredient
private final Ingredient
SmithingTransformRecipeBuilder.template
private final Ingredient
SmithingTrimRecipeBuilder.template
Modifier and TypeFieldDescriptionprivate final NonNullList<Ingredient>
ShapelessRecipeBuilder.ingredients
private final Map<Character,
Ingredient> ShapedRecipeBuilder.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 <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.generic
(Ingredient p_250999_, RecipeCategory p_248815_, ItemLike p_249766_, float p_251320_, int p_248693_, RecipeSerializer<T> p_250921_, AbstractCookingRecipe.Factory<T> p_311862_) 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_) SmithingTransformRecipeBuilder.smithing
(Ingredient p_267071_, Ingredient p_266959_, Ingredient p_266803_, RecipeCategory p_266757_, Item p_267256_) static SmithingTrimRecipeBuilder
SmithingTrimRecipeBuilder.smithingTrim
(Ingredient p_266812_, Ingredient p_266843_, Ingredient p_267309_, RecipeCategory p_267269_) 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_) ModifierConstructorDescriptionprivate
SimpleCookingRecipeBuilder
(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemLike p_252112_, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_312878_) SingleItemRecipeBuilder
(RecipeCategory p_251425_, SingleItemRecipe.Factory<?> p_311287_, Ingredient p_251221_, ItemLike p_251302_, int p_250964_) SmithingTransformRecipeBuilder
(Ingredient p_266973_, Ingredient p_267047_, Ingredient p_267009_, RecipeCategory p_266694_, Item p_267183_) SmithingTrimRecipeBuilder
(RecipeCategory p_267007_, Ingredient p_266712_, Ingredient p_267018_, Ingredient p_267264_) -
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.animal.sniffer
-
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_268171_, int p_268303_, EnumMap<ArmorItem.Type, Integer> p_267941_, int p_268086_, SoundEvent p_268145_, float p_268058_, float p_268180_, Supplier<Ingredient> p_268256_) 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
SmithingTransformRecipe.addition
(package private) final Ingredient
SmithingTrimRecipe.addition
(package private) final Ingredient
SmithingTransformRecipe.base
(package private) final Ingredient
SmithingTrimRecipe.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
(package private) final Ingredient
SmithingTransformRecipe.template
(package private) final Ingredient
SmithingTrimRecipe.template
private static final Ingredient
FireworkStarRecipe.TRAIL_INGREDIENT
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Ingredient>
Ingredient.CODEC
static final com.mojang.serialization.Codec<Ingredient>
Ingredient.CODEC_NONEMPTY
private final NonNullList<Ingredient>
ShapedRecipePattern.ingredients
The field for theingredients
record component.(package private) final NonNullList<Ingredient>
ShapelessRecipe.ingredients
private final Map<Character,
Ingredient> ShapedRecipePattern.Data.key
The field for thekey
record component.static final com.mojang.serialization.Codec<Ingredient>
Ingredient.VANILLA_CODEC
The vanilla codec that doesn't support custom Ingredient types.private static final com.mojang.serialization.Codec<Ingredient>
Ingredient.VANILLA_CODEC_NONEMPTY
Modifier and TypeMethodDescriptionstatic Ingredient
Ingredient.fromNetwork
(FriendlyByteBuf p_43941_) static Ingredient
Ingredient.fromValues
(Stream<? extends Ingredient.Value> p_43939_) static Ingredient
Ingredient.of()
static Ingredient
static Ingredient
static Ingredient
static Ingredient
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<Ingredient>
Ingredient.codec
(boolean p_298496_) AbstractCookingRecipe.getIngredients()
default NonNullList<Ingredient>
Recipe.getIngredients()
ShapedRecipe.getIngredients()
ShapelessRecipe.getIngredients()
SingleItemRecipe.getIngredients()
ShapedRecipePattern.ingredients()
Returns the value of theingredients
record component.ShapedRecipePattern.Data.key()
Returns the value of thekey
record component.IIngredientSerializer<? extends Ingredient>
Ingredient.serializer()
Modifier and TypeMethodDescriptionAbstractCookingRecipe.Factory.create
(String p_310191_, CookingBookCategory p_311031_, Ingredient p_313122_, ItemStack p_312156_, float p_312177_, int p_311374_) SimpleCookingSerializer.create
(String p_312339_, CookingBookCategory p_309654_, Ingredient p_310924_, ItemStack p_311755_, float p_311505_, int p_311630_) SingleItemRecipe.Factory.create
(String p_310227_, Ingredient p_313029_, ItemStack p_312409_) Modifier and TypeMethodDescriptionstatic ShapedRecipePattern
ShapedRecipePattern.of
(Map<Character, Ingredient> p_310983_, String... p_310430_) static ShapedRecipePattern
ModifierConstructorDescriptionAbstractCookingRecipe
(RecipeType<?> p_250197_, String p_249518_, CookingBookCategory p_250891_, Ingredient p_251354_, ItemStack p_252185_, float p_252165_, int p_250256_) BlastingRecipe
(String p_251053_, CookingBookCategory p_249936_, Ingredient p_251550_, ItemStack p_251027_, float p_250843_, int p_249841_) CampfireCookingRecipe
(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_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) SmeltingRecipe
(String p_250200_, CookingBookCategory p_251114_, Ingredient p_250340_, ItemStack p_250306_, float p_249577_, int p_250030_) SmithingTransformRecipe
(Ingredient p_266750_, Ingredient p_266787_, Ingredient p_267292_, ItemStack p_267031_) SmithingTrimRecipe
(Ingredient p_267298_, Ingredient p_266862_, Ingredient p_267050_) SmokingRecipe
(String p_249312_, CookingBookCategory p_251017_, Ingredient p_252345_, ItemStack p_250002_, float p_250535_, int p_251222_) StonecutterRecipe
(String p_44479_, Ingredient p_44480_, ItemStack p_301701_) ModifierConstructorDescriptionCreates an instance of aData
record class.ShapedRecipePattern
(int width, int height, NonNullList<Ingredient> ingredients, Optional<ShapedRecipePattern.Data> data) Creates an instance of aShapedRecipePattern
record class.ShapelessRecipe
(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
Modifier and TypeMethodDescriptionstatic <T extends Ingredient>
booleanForgeHooks.ingredientToNetwork
(FriendlyByteBuf buffer, T ingredient) Modifier and TypeMethodDescription@NotNull Ingredient
ForgeTier.getRepairIngredient()
static Ingredient
ForgeHooks.ingredientFromNetwork
(FriendlyByteBuf buffer) Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Ingredient>
ForgeHooks.enhanceIngredientCodec
(com.mojang.serialization.Codec<Ingredient> vanilla) Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Ingredient>
ForgeHooks.enhanceIngredientCodec
(com.mojang.serialization.Codec<Ingredient> vanilla) 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.ingredients
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
static final IIngredientSerializer<Ingredient>
IIngredientSerializer.VANILLA
Modifier and TypeMethodDescriptiondefault Ingredient
IIngredientBuilder.compound
(Ingredient... values) default Ingredient
IIngredientBuilder.difference
(TagKey<Item> base, TagKey<Item> subtracted) default Ingredient
IIngredientBuilder.difference
(Ingredient base, Ingredient subtracted) static Ingredient
AbstractIngredient.fromNetwork
(FriendlyByteBuf buffer) Deprecated.static Ingredient
AbstractIngredient.fromValues
(Stream<? extends Ingredient.Value> values) Deprecated.default Ingredient
IIngredientBuilder.intersection
(TagKey... values) default Ingredient
IIngredientBuilder.intersection
(Ingredient... values) 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) static Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientdefault Ingredient
Modifier and TypeMethodDescriptionabstract IIngredientSerializer<? extends Ingredient>
AbstractIngredient.serializer()
IIngredientSerializer<? extends Ingredient>
CompoundIngredient.serializer()
IIngredientSerializer<? extends Ingredient>
PartialNBTIngredient.serializer()
IIngredientSerializer<? extends Ingredient>
StrictNBTIngredient.serializer()
Modifier and TypeMethodDescriptiondefault Ingredient
IIngredientBuilder.compound
(Ingredient... values) default Ingredient
IIngredientBuilder.difference
(Ingredient base, Ingredient subtracted) default Ingredient
IIngredientBuilder.intersection
(Ingredient... values) static Ingredient
CompoundIngredient.of
(Ingredient... children) static DifferenceIngredient
DifferenceIngredient.of
(Ingredient base, Ingredient subtracted) Gets the difference from the two ingredientsstatic Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientModifierConstructorDescriptionprivate
DifferenceIngredient
(Ingredient base, Ingredient subtracted) ModifierConstructorDescriptionprivate
CompoundIngredient
(List<Ingredient> children) private
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)
fromNetwork(FriendlyByteBuf)