Uses of Class
net.minecraft.world.item.crafting.Ingredient
Package
Description
Classes for NeoForge's own data generation.
-
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_, ItemStack result, float p_250383_, int p_250476_) static 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_, ItemStack result, float p_252321_, int p_251916_) 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_, ItemStack result, float p_251320_, int p_248693_, RecipeSerializer<T> p_250921_, AbstractCookingRecipe.Factory<T> p_312657_) 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_312657_) 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_, ItemStack result, float p_249452_, int p_250496_) 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_, ItemStack result, float p_252329_, int p_250482_) 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_, ItemStack result, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_) private
SimpleCookingRecipeBuilder
(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemLike p_252112_, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_) SingleItemRecipeBuilder
(RecipeCategory p_251425_, SingleItemRecipe.Factory<?> p_312361_, 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.animal.allay
-
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 Supplier
<Ingredient> ArmorMaterial.repairIngredient
The field for therepairIngredient
record component.private final Supplier
<Ingredient> Tiers.repairIngredient
Modifier and TypeMethodDescriptionArmorMaterial.repairIngredient()
Returns the value of therepairIngredient
record component.Modifier and TypeMethodDescriptionprivate static Holder
<ArmorMaterial> ArmorMaterials.register
(String p_323589_, EnumMap<ArmorItem.Type, Integer> p_323819_, int p_323636_, Holder<SoundEvent> p_323958_, float p_323937_, float p_323731_, Supplier<Ingredient> p_323970_) private static Holder
<ArmorMaterial> ArmorMaterials.register
(String p_323865_, EnumMap<ArmorItem.Type, Integer> p_324599_, int p_324319_, Holder<SoundEvent> p_324145_, float p_323494_, float p_324549_, Supplier<Ingredient> p_323845_, List<ArmorMaterial.Layer> p_323990_) ModifierConstructorDescriptionArmorMaterial
(Map<ArmorItem.Type, Integer> defense, int enchantmentValue, Holder<SoundEvent> equipSound, Supplier<Ingredient> repairIngredient, List<ArmorMaterial.Layer> layers, float toughness, float knockbackResistance) Creates an instance of aArmorMaterial
record class.private
Tiers
(TagKey<Block> p_336171_, int p_43332_, float p_43334_, float p_43335_, int p_43333_, Supplier<Ingredient> p_43337_) -
Uses of Ingredient in net.minecraft.world.item.alchemy
Modifier and TypeFieldDescriptionprivate final Ingredient
PotionBrewing.Mix.ingredient
The field for theingredient
record component.Modifier and TypeFieldDescriptionprivate final List
<Ingredient> PotionBrewing.Builder.containers
private final List
<Ingredient> PotionBrewing.containers
Modifier and TypeMethodDescriptionPotionBrewing.Mix.ingredient()
Returns the value of theingredient
record component.Modifier and TypeMethodDescriptionvoid
PotionBrewing.Builder.addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.ModifierConstructorDescriptionCreates an instance of aMix
record class.ModifierConstructorDescription(package private)
PotionBrewing
(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_) (package private)
PotionBrewing
(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_, List<IBrewingRecipe> recipes) -
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
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
private static final Ingredient
FireworkStarRecipe.TWINKLE_INGREDIENT
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Ingredient> Ingredient.CODEC
This codec allows both the{...}
and[{...}, {...}, ...]
syntax.static final com.mojang.serialization.Codec
<Ingredient> Ingredient.CODEC_NONEMPTY
Same asCODEC
except that empty ingredients ([]
) are not allowed.static final StreamCodec
<RegistryFriendlyByteBuf, Ingredient> Ingredient.CONTENTS_STREAM_CODEC
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
<List<Ingredient>> Ingredient.LIST_CODEC
static final com.mojang.serialization.Codec
<List<Ingredient>> Ingredient.LIST_CODEC_NONEMPTY
static final com.mojang.serialization.MapCodec
<Ingredient> Ingredient.MAP_CODEC_NONEMPTY
This is a codec that only allows the{...}
syntax.Modifier and TypeMethodDescriptionstatic 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_301074_) Deprecated.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.Modifier and TypeMethodDescriptionAbstractCookingRecipe.Factory.create
(String p_312581_, CookingBookCategory p_312220_, Ingredient p_312282_, ItemStack p_311868_, float p_312803_, int p_312165_) SimpleCookingSerializer.create
(String p_312671_, CookingBookCategory p_312067_, Ingredient p_312327_, ItemStack p_311758_, float p_312386_, int p_311986_) SingleItemRecipe.Factory.create
(String p_311769_, Ingredient p_312083_, ItemStack p_312063_) Modifier and TypeMethodDescriptionstatic ShapedRecipePattern
ShapedRecipePattern.of
(Map<Character, Ingredient> p_312851_, String... p_312645_) 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_302318_) 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.neoforged.neoforge.common
ModifierConstructorDescriptionSimpleTier
(TagKey<Block> incorrectBlocksForDrops, int uses, float speed, float attackDamageBonus, int enchantmentValue, Supplier<Ingredient> repairIngredient) -
Uses of Ingredient in net.neoforged.neoforge.common.brewing
Modifier and TypeFieldDescriptionprivate final Ingredient
BrewingRecipe.ingredient
private final Ingredient
BrewingRecipe.input
ModifierConstructorDescriptionBrewingRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of Ingredient in net.neoforged.neoforge.common.crafting
Modifier and TypeFieldDescriptionprivate final Ingredient
DifferenceIngredient.base
The field for thebase
record component.private final Ingredient
SizedIngredient.ingredient
private final Ingredient
DifferenceIngredient.subtracted
The field for thesubtracted
record component.Modifier and TypeFieldDescriptionprivate final List
<Ingredient> CompoundIngredient.children
The field for thechildren
record component.private final List
<Ingredient> IntersectionIngredient.children
The field for thechildren
record component.Modifier and TypeMethodDescriptionDifferenceIngredient.base()
Returns the value of thebase
record component.SizedIngredient.ingredient()
static Ingredient
CompoundIngredient.of
(Ingredient... children) Creates a compound ingredient from the given list of ingredientsstatic <T> Ingredient
DataComponentIngredient.of
(boolean strict, Supplier<? extends DataComponentType<? super T>> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, HolderSet<Item> items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentMap map, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentPredicate predicate, Holder<Item>... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentPredicate predicate, HolderSet<Item> items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentPredicate predicate, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic <T> Ingredient
DataComponentIngredient.of
(boolean strict, DataComponentType<? super T> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic Ingredient
Creates a new ingredient matching the given item, containing the given componentsstatic Ingredient
DifferenceIngredient.of
(Ingredient base, Ingredient subtracted) Gets the difference from the two ingredientsstatic Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientDifferenceIngredient.subtracted()
Returns the value of thesubtracted
record component.default Ingredient
ICustomIngredient.toVanilla()
Returns a newIngredient
behaving as defined by this custom ingredient.Modifier and TypeMethodDescriptionCompoundIngredient.children()
Returns the value of thechildren
record component.IntersectionIngredient.children()
Returns the value of thechildren
record component.static com.mojang.serialization.Codec
<Ingredient> CraftingHelper.makeIngredientCodec
(boolean allowEmpty) static com.mojang.serialization.MapCodec
<Ingredient> CraftingHelper.makeIngredientMapCodec()
Modifier and TypeMethodDescriptionstatic Ingredient
CompoundIngredient.of
(Ingredient... children) Creates a compound ingredient from the given list of ingredientsstatic Ingredient
DifferenceIngredient.of
(Ingredient base, Ingredient subtracted) Gets the difference from the two ingredientsstatic Ingredient
IntersectionIngredient.of
(Ingredient... ingredients) Gets an intersection ingredientModifierConstructorDescriptionDifferenceIngredient
(Ingredient base, Ingredient subtracted) Creates an instance of aDifferenceIngredient
record class.SizedIngredient
(Ingredient ingredient, int count) ModifierConstructorDescriptionCompoundIngredient
(List<Ingredient> children) Creates an instance of aCompoundIngredient
record class.IntersectionIngredient
(List<Ingredient> children) Creates an instance of aIntersectionIngredient
record class. -
Uses of Ingredient in net.neoforged.neoforge.common.data.internal
Modifier and TypeMethodDescriptionprivate @Nullable Ingredient
NeoForgeRecipeProvider.enhance
(ResourceLocation name, Ingredient vanilla) Modifier and TypeMethodDescriptionprivate @Nullable Ingredient
NeoForgeRecipeProvider.enhance
(ResourceLocation name, Ingredient vanilla) -
Uses of Ingredient in net.neoforged.neoforge.debug.crafting
Modifier and TypeMethodDescriptionprivate static NonNullList
<Ingredient> IngredientTests.CompressedShapelessRecipe.decompressList
(List<SizedIngredient> ingredients) Modifier and TypeMethodDescriptionprivate static List
<SizedIngredient> IngredientTests.CompressedShapelessRecipe.compressIngredients
(NonNullList<Ingredient> ingredients) -
Uses of Ingredient in net.neoforged.neoforge.oldtest.recipebook
Modifier and TypeFieldDescriptionprivate 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.neoforged.neoforge.unittest
Modifier and TypeMethodDescription(package private) void
IngredientTests.testCompoundIngredient
(Ingredient a, Ingredient b) -
Uses of Ingredient in net.neoforged.testframework.condition
Modifier and TypeFieldDescriptionprivate final Ingredient
TestEnabledIngredient.base
The field for thebase
record component.Modifier and TypeMethodDescriptionTestEnabledIngredient.base()
Returns the value of thebase
record component.ModifierConstructorDescriptionTestEnabledIngredient
(Ingredient base, TestFramework framework, String testId) Creates an instance of aTestEnabledIngredient
record class.