Package net.minecraft.data.recipes
Class RecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
- All Implemented Interfaces:
 DataProvider
- Direct Known Subclasses:
 BundleRecipeProvider,UpdateOneTwentyOneRecipeProvider,VanillaRecipeProvider
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider> - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PackOutput.PathProviderprotected final PackOutput.PathProviderprivate static final Map<BlockFamily.Variant,BiFunction<ItemLike, ItemLike, RecipeBuilder>> Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER - 
Constructor Summary
ConstructorsConstructorDescriptionRecipeProvider(PackOutput p_248933_) RecipeProvider(PackOutput p_248933_, CompletableFuture<HolderLookup.Provider> lookupProvider) Deprecated, for removal: This API element is subject to removal in a future version. - 
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbanner(RecipeOutput p_301322_, ItemLike p_126083_, ItemLike p_126084_) protected static voidbedFromPlanksAndWool(RecipeOutput p_301140_, ItemLike p_126075_, ItemLike p_126076_) protected CompletableFuture<?>buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_) protected CompletableFuture<?>buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_, ICondition... conditions) protected abstract voidbuildRecipes(RecipeOutput p_301172_) protected static RecipeBuilderbuttonBuilder(ItemLike p_176659_, Ingredient p_176660_) protected static voidcandle(RecipeOutput p_301024_, ItemLike p_176544_, ItemLike p_176545_) protected static voidcarpet(RecipeOutput p_300953_, ItemLike p_176718_, ItemLike p_176719_) protected static voidchestBoat(RecipeOutput p_300996_, ItemLike p_236373_, ItemLike p_236374_) protected static voidchiseled(RecipeOutput p_300911_, RecipeCategory p_251604_, ItemLike p_251049_, ItemLike p_252267_) protected static ShapedRecipeBuilderchiseledBuilder(RecipeCategory p_251755_, ItemLike p_249782_, Ingredient p_250087_) protected static voidcolorBlockWithDye(RecipeOutput p_301260_, List<Item> p_289675_, List<Item> p_289672_, String p_289641_) protected static voidcoloredTerracottaFromTerracottaAndDye(RecipeOutput p_300948_, ItemLike p_126099_, ItemLike p_126100_) protected static voidconcretePowder(RecipeOutput p_301177_, ItemLike p_126103_, ItemLike p_126104_) protected static <T extends AbstractCookingRecipe>
voidcookRecipes(RecipeOutput p_301054_, String p_126008_, RecipeSerializer<T> p_250529_, AbstractCookingRecipe.Factory<T> p_312449_, int p_126010_) protected static voidcopperBulb(RecipeOutput p_308971_, Block p_309026_, Block p_308866_) protected static voidcopySmithingTemplate(RecipeOutput p_300986_, ItemLike p_266974_, TagKey<Item> p_267283_) protected static voidcopySmithingTemplate(RecipeOutput p_301265_, ItemLike p_267133_, ItemLike p_267023_) protected static voidcut(RecipeOutput p_301189_, RecipeCategory p_252306_, ItemLike p_249686_, ItemLike p_251100_) protected static ShapedRecipeBuildercutBuilder(RecipeCategory p_250895_, ItemLike p_251147_, Ingredient p_251563_) protected static RecipeBuilderdoorBuilder(ItemLike p_176671_, Ingredient p_176672_) protected static RecipeBuilderfenceBuilder(ItemLike p_176679_, Ingredient p_176680_) protected static RecipeBuilderfenceGateBuilder(ItemLike p_176685_, Ingredient p_176686_) protected voidgenerateForEnabledBlockFamilies(RecipeOutput p_301146_, FeatureFlagSet p_251836_) protected static voidgenerateRecipes(RecipeOutput p_301014_, BlockFamily p_176582_, FeatureFlagSet p_313799_) protected static BlockgetBaseBlock(BlockFamily p_176524_, BlockFamily.Variant p_176525_) protected static StringgetBlastingRecipeName(ItemLike p_176669_) protected static StringgetConversionRecipeName(ItemLike p_176518_, ItemLike p_176519_) protected static StringgetHasName(ItemLike p_176603_) protected static StringgetItemName(ItemLike p_176633_) final StringgetName()protected static StringgetSimpleRecipeName(ItemLike p_176645_) protected static StringgetSmeltingRecipeName(ItemLike p_176657_) protected static voidgrate(RecipeOutput p_309012_, Block p_309021_, Block p_309140_) protected static voidhangingSign(RecipeOutput p_301272_, ItemLike p_252355_, ItemLike p_250437_) protected static Criterion<InventoryChangeTrigger.TriggerInstance>has(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) protected static Criterion<InventoryChangeTrigger.TriggerInstance>protected static Criterion<InventoryChangeTrigger.TriggerInstance>protected static Criterion<EnterBlockTrigger.TriggerInstance>protected static Criterion<InventoryChangeTrigger.TriggerInstance>inventoryTrigger(ItemPredicate... p_126012_) protected static Criterion<InventoryChangeTrigger.TriggerInstance>inventoryTrigger(ItemPredicate.Builder... p_299111_) protected static voidmosaicBuilder(RecipeOutput p_301088_, RecipeCategory p_248788_, ItemLike p_251925_, ItemLike p_252242_) protected static voidnetheriteSmithing(RecipeOutput p_300886_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) protected static voidnineBlockStorageRecipes(RecipeOutput p_301057_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) protected static voidnineBlockStorageRecipes(RecipeOutput p_301222_, RecipeCategory p_250083_, ItemLike p_250042_, RecipeCategory p_248977_, ItemLike p_251911_, String p_250475_, String p_248641_, String p_252237_, String p_250414_) protected static voidnineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeOutput p_301132_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) protected static voidnineBlockStorageRecipesWithCustomPacking(RecipeOutput p_301216_, RecipeCategory p_250885_, ItemLike p_251651_, RecipeCategory p_250874_, ItemLike p_248576_, String p_250171_, String p_249386_) protected static voidoneToOneConversionRecipe(RecipeOutput p_301223_, ItemLike p_176553_, ItemLike p_176554_, String p_176555_) protected static voidoneToOneConversionRecipe(RecipeOutput p_300968_, ItemLike p_176558_, ItemLike p_176559_, String p_176560_, int p_176561_) protected static voidoreBlasting(RecipeOutput p_301288_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_) protected static <T extends AbstractCookingRecipe>
voidoreCooking(RecipeOutput p_300957_, RecipeSerializer<T> p_251817_, AbstractCookingRecipe.Factory<T> p_312707_, List<ItemLike> p_249619_, RecipeCategory p_251154_, ItemLike p_250066_, float p_251871_, int p_251316_, String p_251450_, String p_249236_) protected static voidoreSmelting(RecipeOutput p_301183_, List<ItemLike> p_250172_, RecipeCategory p_250588_, ItemLike p_251868_, float p_250789_, int p_252144_, String p_251687_) protected static voidplanksFromLog(RecipeOutput p_301020_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) protected static voidplanksFromLogs(RecipeOutput p_301221_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_) protected static voidpolished(RecipeOutput p_301100_, RecipeCategory p_248719_, ItemLike p_250032_, ItemLike p_250021_) protected static RecipeBuilderpolishedBuilder(RecipeCategory p_249131_, ItemLike p_251242_, Ingredient p_251412_) protected static voidpressurePlate(RecipeOutput p_301211_, ItemLike p_176692_, ItemLike p_176693_) protected static RecipeBuilderpressurePlateBuilder(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_) run(CachedOutput p_254020_) protected static RecipeBuildersignBuilder(ItemLike p_176727_, Ingredient p_176728_) protected static <T extends AbstractCookingRecipe>
voidsimpleCookingRecipe(RecipeOutput p_300995_, String p_249709_, RecipeSerializer<T> p_251876_, AbstractCookingRecipe.Factory<T> p_312056_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_) protected static voidslab(RecipeOutput p_300949_, RecipeCategory p_251848_, ItemLike p_249368_, ItemLike p_252133_) protected static RecipeBuilderslabBuilder(RecipeCategory p_251707_, ItemLike p_251284_, Ingredient p_248824_) protected static voidsmeltingResultFromBase(RecipeOutput p_300916_, ItemLike p_176741_, ItemLike p_176742_) protected static voidstainedGlassFromGlassAndDye(RecipeOutput p_300895_, ItemLike p_126087_, ItemLike p_126088_) protected static voidstainedGlassPaneFromGlassPaneAndDye(RecipeOutput p_301038_, ItemLike p_126095_, ItemLike p_126096_) protected static voidstainedGlassPaneFromStainedGlass(RecipeOutput p_301233_, ItemLike p_126091_, ItemLike p_126092_) protected static RecipeBuilderstairBuilder(ItemLike p_176711_, Ingredient p_176712_) protected static voidstonecutterResultFromBase(RecipeOutput p_301035_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_) protected static voidstonecutterResultFromBase(RecipeOutput p_301195_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_, int p_251462_) protected static voidthreeByThreePacker(RecipeOutput p_301302_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) protected static voidthreeByThreePacker(RecipeOutput p_301298_, RecipeCategory p_259247_, ItemLike p_259376_, ItemLike p_259717_, String p_260308_) protected static RecipeBuildertrapdoorBuilder(ItemLike p_176721_, Ingredient p_176722_) protected static voidtrimSmithing(RecipeOutput p_301332_, Item p_285461_, ResourceLocation p_285044_) protected static voidtwoByTwoPacker(RecipeOutput p_301022_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) protected static voidwall(RecipeOutput p_301176_, RecipeCategory p_251148_, ItemLike p_250499_, ItemLike p_249970_) protected static RecipeBuilderwallBuilder(RecipeCategory p_249083_, ItemLike p_250754_, Ingredient p_250311_) protected static voidwaxRecipes(RecipeOutput p_301254_, FeatureFlagSet p_313879_) protected static voidwoodenBoat(RecipeOutput p_301315_, ItemLike p_126023_, ItemLike p_126024_) protected static voidwoodFromLogs(RecipeOutput p_301095_, ItemLike p_126004_, ItemLike p_126005_)  
- 
Field Details
- 
recipePathProvider
 - 
advancementPathProvider
 - 
SHAPE_BUILDERS
private static final Map<BlockFamily.Variant,BiFunction<ItemLike, SHAPE_BUILDERSItemLike, RecipeBuilder>>  
 - 
 - 
Constructor Details
- 
RecipeProvider
@Deprecated(forRemoval=true, since="1.20.4") public RecipeProvider(PackOutput p_248933_, CompletableFuture<HolderLookup.Provider> lookupProvider) Deprecated, for removal: This API element is subject to removal in a future version. - 
RecipeProvider
 
 - 
 - 
Method Details
- 
run
- Specified by:
 runin interfaceDataProvider
 - 
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_)  - 
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, AdvancementHolder p_301116_, ICondition... conditions)  - 
buildRecipes
 - 
generateForEnabledBlockFamilies
 - 
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput p_301223_, ItemLike p_176553_, ItemLike p_176554_, @Nullable String p_176555_)  - 
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput p_300968_, ItemLike p_176558_, ItemLike p_176559_, @Nullable String p_176560_, int p_176561_)  - 
oreSmelting
protected static void oreSmelting(RecipeOutput p_301183_, List<ItemLike> p_250172_, RecipeCategory p_250588_, ItemLike p_251868_, float p_250789_, int p_252144_, String p_251687_)  - 
oreBlasting
protected static void oreBlasting(RecipeOutput p_301288_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_)  - 
oreCooking
protected static <T extends AbstractCookingRecipe> void oreCooking(RecipeOutput p_300957_, RecipeSerializer<T> p_251817_, AbstractCookingRecipe.Factory<T> p_312707_, List<ItemLike> p_249619_, RecipeCategory p_251154_, ItemLike p_250066_, float p_251871_, int p_251316_, String p_251450_, String p_249236_)  - 
netheriteSmithing
protected static void netheriteSmithing(RecipeOutput p_300886_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_)  - 
trimSmithing
protected static void trimSmithing(RecipeOutput p_301332_, Item p_285461_, ResourceLocation p_285044_)  - 
twoByTwoPacker
protected static void twoByTwoPacker(RecipeOutput p_301022_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_)  - 
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput p_301298_, RecipeCategory p_259247_, ItemLike p_259376_, ItemLike p_259717_, String p_260308_)  - 
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput p_301302_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_)  - 
planksFromLog
protected static void planksFromLog(RecipeOutput p_301020_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_)  - 
planksFromLogs
protected static void planksFromLogs(RecipeOutput p_301221_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_)  - 
woodFromLogs
 - 
woodenBoat
 - 
chestBoat
 - 
buttonBuilder
 - 
doorBuilder
 - 
fenceBuilder
 - 
fenceGateBuilder
 - 
pressurePlate
 - 
pressurePlateBuilder
protected static RecipeBuilder pressurePlateBuilder(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_)  - 
slab
protected static void slab(RecipeOutput p_300949_, RecipeCategory p_251848_, ItemLike p_249368_, ItemLike p_252133_)  - 
slabBuilder
protected static RecipeBuilder slabBuilder(RecipeCategory p_251707_, ItemLike p_251284_, Ingredient p_248824_)  - 
stairBuilder
 - 
trapdoorBuilder
 - 
signBuilder
 - 
hangingSign
 - 
colorBlockWithDye
 - 
carpet
 - 
bedFromPlanksAndWool
protected static void bedFromPlanksAndWool(RecipeOutput p_301140_, ItemLike p_126075_, ItemLike p_126076_)  - 
banner
 - 
stainedGlassFromGlassAndDye
protected static void stainedGlassFromGlassAndDye(RecipeOutput p_300895_, ItemLike p_126087_, ItemLike p_126088_)  - 
stainedGlassPaneFromStainedGlass
protected static void stainedGlassPaneFromStainedGlass(RecipeOutput p_301233_, ItemLike p_126091_, ItemLike p_126092_)  - 
stainedGlassPaneFromGlassPaneAndDye
protected static void stainedGlassPaneFromGlassPaneAndDye(RecipeOutput p_301038_, ItemLike p_126095_, ItemLike p_126096_)  - 
coloredTerracottaFromTerracottaAndDye
protected static void coloredTerracottaFromTerracottaAndDye(RecipeOutput p_300948_, ItemLike p_126099_, ItemLike p_126100_)  - 
concretePowder
protected static void concretePowder(RecipeOutput p_301177_, ItemLike p_126103_, ItemLike p_126104_)  - 
candle
 - 
wall
protected static void wall(RecipeOutput p_301176_, RecipeCategory p_251148_, ItemLike p_250499_, ItemLike p_249970_)  - 
wallBuilder
protected static RecipeBuilder wallBuilder(RecipeCategory p_249083_, ItemLike p_250754_, Ingredient p_250311_)  - 
polished
protected static void polished(RecipeOutput p_301100_, RecipeCategory p_248719_, ItemLike p_250032_, ItemLike p_250021_)  - 
polishedBuilder
protected static RecipeBuilder polishedBuilder(RecipeCategory p_249131_, ItemLike p_251242_, Ingredient p_251412_)  - 
cut
protected static void cut(RecipeOutput p_301189_, RecipeCategory p_252306_, ItemLike p_249686_, ItemLike p_251100_)  - 
cutBuilder
protected static ShapedRecipeBuilder cutBuilder(RecipeCategory p_250895_, ItemLike p_251147_, Ingredient p_251563_)  - 
chiseled
protected static void chiseled(RecipeOutput p_300911_, RecipeCategory p_251604_, ItemLike p_251049_, ItemLike p_252267_)  - 
mosaicBuilder
protected static void mosaicBuilder(RecipeOutput p_301088_, RecipeCategory p_248788_, ItemLike p_251925_, ItemLike p_252242_)  - 
chiseledBuilder
protected static ShapedRecipeBuilder chiseledBuilder(RecipeCategory p_251755_, ItemLike p_249782_, Ingredient p_250087_)  - 
stonecutterResultFromBase
protected static void stonecutterResultFromBase(RecipeOutput p_301035_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_)  - 
stonecutterResultFromBase
protected static void stonecutterResultFromBase(RecipeOutput p_301195_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_, int p_251462_)  - 
smeltingResultFromBase
protected static void smeltingResultFromBase(RecipeOutput p_300916_, ItemLike p_176741_, ItemLike p_176742_)  - 
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(RecipeOutput p_301057_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_)  - 
nineBlockStorageRecipesWithCustomPacking
protected static void nineBlockStorageRecipesWithCustomPacking(RecipeOutput p_301216_, RecipeCategory p_250885_, ItemLike p_251651_, RecipeCategory p_250874_, ItemLike p_248576_, String p_250171_, String p_249386_)  - 
nineBlockStorageRecipesRecipesWithCustomUnpacking
protected static void nineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeOutput p_301132_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_)  - 
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(RecipeOutput p_301222_, RecipeCategory p_250083_, ItemLike p_250042_, RecipeCategory p_248977_, ItemLike p_251911_, String p_250475_, @Nullable String p_248641_, String p_252237_, @Nullable String p_250414_)  - 
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput p_300986_, ItemLike p_266974_, TagKey<Item> p_267283_)  - 
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput p_301265_, ItemLike p_267133_, ItemLike p_267023_)  - 
cookRecipes
protected static <T extends AbstractCookingRecipe> void cookRecipes(RecipeOutput p_301054_, String p_126008_, RecipeSerializer<T> p_250529_, AbstractCookingRecipe.Factory<T> p_312449_, int p_126010_)  - 
simpleCookingRecipe
protected static <T extends AbstractCookingRecipe> void simpleCookingRecipe(RecipeOutput p_300995_, String p_249709_, RecipeSerializer<T> p_251876_, AbstractCookingRecipe.Factory<T> p_312056_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_)  - 
waxRecipes
 - 
grate
 - 
copperBulb
 - 
generateRecipes
protected static void generateRecipes(RecipeOutput p_301014_, BlockFamily p_176582_, FeatureFlagSet p_313799_)  - 
getBaseBlock
 - 
insideOf
 - 
has
protected static Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints p_176521_, ItemLike p_176522_)  - 
has
 - 
has
 - 
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... p_299111_)  - 
inventoryTrigger
protected static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... p_126012_)  - 
getHasName
 - 
getItemName
 - 
getSimpleRecipeName
 - 
getConversionRecipeName
 - 
getSmeltingRecipeName
 - 
getBlastingRecipeName
 - 
getName
- Specified by:
 getNamein interfaceDataProvider
 
 -