Package net.minecraft.data.recipes
Class RecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
BundleRecipeProvider
,DataGeneratorTest.Recipes
,UpdateOneTwentyRecipeProvider
,VanillaRecipeProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PackOutput.PathProvider
protected final PackOutput.PathProvider
private 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
banner
(Consumer<FinishedRecipe> p_126082_, ItemLike p_126083_, ItemLike p_126084_) protected static void
bedFromPlanksAndWool
(Consumer<FinishedRecipe> p_126074_, ItemLike p_126075_, ItemLike p_126076_) protected static void
bedFromWhiteBedAndDye
(Consumer<FinishedRecipe> p_126078_, ItemLike p_126079_, ItemLike p_126080_) protected CompletableFuture<?>
buildAdvancement
(CachedOutput p_253674_, ResourceLocation p_254102_, Advancement.Builder p_253712_) protected abstract void
buildRecipes
(Consumer<FinishedRecipe> p_251297_) protected static RecipeBuilder
buttonBuilder
(ItemLike p_176659_, Ingredient p_176660_) protected static void
candle
(Consumer<FinishedRecipe> p_176543_, ItemLike p_176544_, ItemLike p_176545_) protected static void
carpet
(Consumer<FinishedRecipe> p_176717_, ItemLike p_176718_, ItemLike p_176719_) protected static void
chestBoat
(Consumer<FinishedRecipe> p_236372_, ItemLike p_236373_, ItemLike p_236374_) protected static void
chiseled
(Consumer<FinishedRecipe> p_250120_, RecipeCategory p_251604_, ItemLike p_251049_, ItemLike p_252267_) protected static ShapedRecipeBuilder
chiseledBuilder
(RecipeCategory p_251755_, ItemLike p_249782_, Ingredient p_250087_) protected static void
coloredCarpetFromWhiteCarpetAndDye
(Consumer<FinishedRecipe> p_126070_, ItemLike p_126071_, ItemLike p_126072_) protected static void
coloredTerracottaFromTerracottaAndDye
(Consumer<FinishedRecipe> p_126098_, ItemLike p_126099_, ItemLike p_126100_) protected static void
coloredWoolFromWhiteWoolAndDye
(Consumer<FinishedRecipe> p_126062_, ItemLike p_126063_, ItemLike p_126064_) protected static void
concretePowder
(Consumer<FinishedRecipe> p_126102_, ItemLike p_126103_, ItemLike p_126104_) protected static void
cookRecipes
(Consumer<FinishedRecipe> p_126007_, String p_126008_, RecipeSerializer<? extends AbstractCookingRecipe> p_250529_, int p_126010_) protected static void
cut
(Consumer<FinishedRecipe> p_248712_, RecipeCategory p_252306_, ItemLike p_249686_, ItemLike p_251100_) protected static ShapedRecipeBuilder
cutBuilder
(RecipeCategory p_250895_, ItemLike p_251147_, Ingredient p_251563_) protected static RecipeBuilder
doorBuilder
(ItemLike p_176671_, Ingredient p_176672_) protected static RecipeBuilder
fenceBuilder
(ItemLike p_176679_, Ingredient p_176680_) protected static RecipeBuilder
fenceGateBuilder
(ItemLike p_176685_, Ingredient p_176686_) protected void
generateForEnabledBlockFamilies
(Consumer<FinishedRecipe> p_249188_, FeatureFlagSet p_251836_) protected static void
generateRecipes
(Consumer<FinishedRecipe> p_176581_, BlockFamily p_176582_) protected static Block
getBaseBlock
(BlockFamily p_176524_, BlockFamily.Variant p_176525_) protected static String
getBlastingRecipeName
(ItemLike p_176669_) protected static String
getConversionRecipeName
(ItemLike p_176518_, ItemLike p_176519_) protected static String
getHasName
(ItemLike p_176603_) protected static String
getItemName
(ItemLike p_176633_) final String
getName()
protected static String
getSimpleRecipeName
(ItemLike p_176645_) protected static String
getSmeltingRecipeName
(ItemLike p_176657_) protected static void
hangingSign
(Consumer<FinishedRecipe> p_250663_, ItemLike p_252355_, ItemLike p_250437_) protected static InventoryChangeTrigger.TriggerInstance
has
(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) protected static InventoryChangeTrigger.TriggerInstance
protected static InventoryChangeTrigger.TriggerInstance
protected static EnterBlockTrigger.TriggerInstance
protected static InventoryChangeTrigger.TriggerInstance
inventoryTrigger
(ItemPredicate... p_126012_) protected static void
mosaicBuilder
(Consumer<FinishedRecipe> p_249200_, RecipeCategory p_248788_, ItemLike p_251925_, ItemLike p_252242_) protected static void
netheriteSmithing
(Consumer<FinishedRecipe> p_251614_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) protected static void
nineBlockStorageRecipes
(Consumer<FinishedRecipe> p_249580_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) protected static void
nineBlockStorageRecipes
(Consumer<FinishedRecipe> p_250423_, 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 void
nineBlockStorageRecipesRecipesWithCustomUnpacking
(Consumer<FinishedRecipe> p_250320_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) protected static void
nineBlockStorageRecipesWithCustomPacking
(Consumer<FinishedRecipe> p_250488_, RecipeCategory p_250885_, ItemLike p_251651_, RecipeCategory p_250874_, ItemLike p_248576_, String p_250171_, String p_249386_) protected static void
oneToOneConversionRecipe
(Consumer<FinishedRecipe> p_176552_, ItemLike p_176553_, ItemLike p_176554_, String p_176555_) protected static void
oneToOneConversionRecipe
(Consumer<FinishedRecipe> p_176557_, ItemLike p_176558_, ItemLike p_176559_, String p_176560_, int p_176561_) protected static void
oreBlasting
(Consumer<FinishedRecipe> p_248775_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_) protected static void
oreCooking
(Consumer<FinishedRecipe> p_250791_, RecipeSerializer<? extends AbstractCookingRecipe> p_251817_, List<ItemLike> p_249619_, RecipeCategory p_251154_, ItemLike p_250066_, float p_251871_, int p_251316_, String p_251450_, String p_249236_) protected static void
oreSmelting
(Consumer<FinishedRecipe> p_250654_, List<ItemLike> p_250172_, RecipeCategory p_250588_, ItemLike p_251868_, float p_250789_, int p_252144_, String p_251687_) protected static void
planksFromLog
(Consumer<FinishedRecipe> p_259712_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) protected static void
planksFromLogs
(Consumer<FinishedRecipe> p_259910_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_) protected static void
polished
(Consumer<FinishedRecipe> p_251348_, RecipeCategory p_248719_, ItemLike p_250032_, ItemLike p_250021_) protected static RecipeBuilder
polishedBuilder
(RecipeCategory p_249131_, ItemLike p_251242_, Ingredient p_251412_) protected static void
pressurePlate
(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_) protected static RecipeBuilder
pressurePlateBuilder
(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_) run
(CachedOutput p_254020_) protected @Nullable CompletableFuture<?>
saveAdvancement
(CachedOutput output, FinishedRecipe finishedRecipe, com.google.gson.JsonObject advancementJson) Called every time a recipe is saved to also save the advancement JSON if it exists.protected static RecipeBuilder
signBuilder
(ItemLike p_176727_, Ingredient p_176728_) protected static void
simpleCookingRecipe
(Consumer<FinishedRecipe> p_249398_, String p_249709_, RecipeSerializer<? extends AbstractCookingRecipe> p_251876_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_) protected static void
slab
(Consumer<FinishedRecipe> p_248880_, RecipeCategory p_251848_, ItemLike p_249368_, ItemLike p_252133_) protected static RecipeBuilder
slabBuilder
(RecipeCategory p_251707_, ItemLike p_251284_, Ingredient p_248824_) protected static void
smeltingResultFromBase
(Consumer<FinishedRecipe> p_176740_, ItemLike p_176741_, ItemLike p_176742_) protected static void
stainedGlassFromGlassAndDye
(Consumer<FinishedRecipe> p_126086_, ItemLike p_126087_, ItemLike p_126088_) protected static void
stainedGlassPaneFromGlassPaneAndDye
(Consumer<FinishedRecipe> p_126094_, ItemLike p_126095_, ItemLike p_126096_) protected static void
stainedGlassPaneFromStainedGlass
(Consumer<FinishedRecipe> p_126090_, ItemLike p_126091_, ItemLike p_126092_) protected static RecipeBuilder
stairBuilder
(ItemLike p_176711_, Ingredient p_176712_) protected static void
stonecutterResultFromBase
(Consumer<FinishedRecipe> p_251589_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_) protected static void
stonecutterResultFromBase
(Consumer<FinishedRecipe> p_249145_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_, int p_251462_) protected static void
threeByThreePacker
(Consumer<FinishedRecipe> p_260012_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) protected static void
threeByThreePacker
(Consumer<FinishedRecipe> p_259036_, RecipeCategory p_259247_, ItemLike p_259376_, ItemLike p_259717_, String p_260308_) protected static RecipeBuilder
trapdoorBuilder
(ItemLike p_176721_, Ingredient p_176722_) protected static void
twoByTwoPacker
(Consumer<FinishedRecipe> p_248860_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) protected static void
wall
(Consumer<FinishedRecipe> p_251034_, RecipeCategory p_251148_, ItemLike p_250499_, ItemLike p_249970_) protected static RecipeBuilder
wallBuilder
(RecipeCategory p_249083_, ItemLike p_250754_, Ingredient p_250311_) protected static void
waxRecipes
(Consumer<FinishedRecipe> p_176611_) protected static void
woodenBoat
(Consumer<FinishedRecipe> p_126022_, ItemLike p_126023_, ItemLike p_126024_) protected static void
woodFromLogs
(Consumer<FinishedRecipe> p_126003_, 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
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
saveAdvancement
@Nullable protected @Nullable CompletableFuture<?> saveAdvancement(CachedOutput output, FinishedRecipe finishedRecipe, com.google.gson.JsonObject advancementJson) Called every time a recipe is saved to also save the advancement JSON if it exists.- Returns:
- A completable future that saves the advancement to disk, or null to cancel saving the advancement.
-
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, ResourceLocation p_254102_, Advancement.Builder p_253712_) -
buildRecipes
-
generateForEnabledBlockFamilies
protected void generateForEnabledBlockFamilies(Consumer<FinishedRecipe> p_249188_, FeatureFlagSet p_251836_) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176552_, ItemLike p_176553_, ItemLike p_176554_, @Nullable String p_176555_) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176557_, ItemLike p_176558_, ItemLike p_176559_, @Nullable String p_176560_, int p_176561_) -
oreSmelting
protected static void oreSmelting(Consumer<FinishedRecipe> p_250654_, List<ItemLike> p_250172_, RecipeCategory p_250588_, ItemLike p_251868_, float p_250789_, int p_252144_, String p_251687_) -
oreBlasting
protected static void oreBlasting(Consumer<FinishedRecipe> p_248775_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_) -
oreCooking
protected static void oreCooking(Consumer<FinishedRecipe> p_250791_, RecipeSerializer<? extends AbstractCookingRecipe> p_251817_, 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(Consumer<FinishedRecipe> p_251614_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) -
twoByTwoPacker
protected static void twoByTwoPacker(Consumer<FinishedRecipe> p_248860_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) -
threeByThreePacker
protected static void threeByThreePacker(Consumer<FinishedRecipe> p_259036_, RecipeCategory p_259247_, ItemLike p_259376_, ItemLike p_259717_, String p_260308_) -
threeByThreePacker
protected static void threeByThreePacker(Consumer<FinishedRecipe> p_260012_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) -
planksFromLog
protected static void planksFromLog(Consumer<FinishedRecipe> p_259712_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) -
planksFromLogs
protected static void planksFromLogs(Consumer<FinishedRecipe> p_259910_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_) -
woodFromLogs
protected static void woodFromLogs(Consumer<FinishedRecipe> p_126003_, ItemLike p_126004_, ItemLike p_126005_) -
woodenBoat
protected static void woodenBoat(Consumer<FinishedRecipe> p_126022_, ItemLike p_126023_, ItemLike p_126024_) -
chestBoat
protected static void chestBoat(Consumer<FinishedRecipe> p_236372_, ItemLike p_236373_, ItemLike p_236374_) -
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
protected static void pressurePlate(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_) -
pressurePlateBuilder
protected static RecipeBuilder pressurePlateBuilder(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_) -
slab
protected static void slab(Consumer<FinishedRecipe> p_248880_, 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
protected static void hangingSign(Consumer<FinishedRecipe> p_250663_, ItemLike p_252355_, ItemLike p_250437_) -
coloredWoolFromWhiteWoolAndDye
protected static void coloredWoolFromWhiteWoolAndDye(Consumer<FinishedRecipe> p_126062_, ItemLike p_126063_, ItemLike p_126064_) -
carpet
protected static void carpet(Consumer<FinishedRecipe> p_176717_, ItemLike p_176718_, ItemLike p_176719_) -
coloredCarpetFromWhiteCarpetAndDye
protected static void coloredCarpetFromWhiteCarpetAndDye(Consumer<FinishedRecipe> p_126070_, ItemLike p_126071_, ItemLike p_126072_) -
bedFromPlanksAndWool
protected static void bedFromPlanksAndWool(Consumer<FinishedRecipe> p_126074_, ItemLike p_126075_, ItemLike p_126076_) -
bedFromWhiteBedAndDye
protected static void bedFromWhiteBedAndDye(Consumer<FinishedRecipe> p_126078_, ItemLike p_126079_, ItemLike p_126080_) -
banner
protected static void banner(Consumer<FinishedRecipe> p_126082_, ItemLike p_126083_, ItemLike p_126084_) -
stainedGlassFromGlassAndDye
protected static void stainedGlassFromGlassAndDye(Consumer<FinishedRecipe> p_126086_, ItemLike p_126087_, ItemLike p_126088_) -
stainedGlassPaneFromStainedGlass
protected static void stainedGlassPaneFromStainedGlass(Consumer<FinishedRecipe> p_126090_, ItemLike p_126091_, ItemLike p_126092_) -
stainedGlassPaneFromGlassPaneAndDye
protected static void stainedGlassPaneFromGlassPaneAndDye(Consumer<FinishedRecipe> p_126094_, ItemLike p_126095_, ItemLike p_126096_) -
coloredTerracottaFromTerracottaAndDye
protected static void coloredTerracottaFromTerracottaAndDye(Consumer<FinishedRecipe> p_126098_, ItemLike p_126099_, ItemLike p_126100_) -
concretePowder
protected static void concretePowder(Consumer<FinishedRecipe> p_126102_, ItemLike p_126103_, ItemLike p_126104_) -
candle
protected static void candle(Consumer<FinishedRecipe> p_176543_, ItemLike p_176544_, ItemLike p_176545_) -
wall
protected static void wall(Consumer<FinishedRecipe> p_251034_, 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(Consumer<FinishedRecipe> p_251348_, 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(Consumer<FinishedRecipe> p_248712_, 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(Consumer<FinishedRecipe> p_250120_, RecipeCategory p_251604_, ItemLike p_251049_, ItemLike p_252267_) -
mosaicBuilder
protected static void mosaicBuilder(Consumer<FinishedRecipe> p_249200_, 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(Consumer<FinishedRecipe> p_251589_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_) -
stonecutterResultFromBase
protected static void stonecutterResultFromBase(Consumer<FinishedRecipe> p_249145_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_, int p_251462_) -
smeltingResultFromBase
protected static void smeltingResultFromBase(Consumer<FinishedRecipe> p_176740_, ItemLike p_176741_, ItemLike p_176742_) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(Consumer<FinishedRecipe> p_249580_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) -
nineBlockStorageRecipesWithCustomPacking
protected static void nineBlockStorageRecipesWithCustomPacking(Consumer<FinishedRecipe> p_250488_, RecipeCategory p_250885_, ItemLike p_251651_, RecipeCategory p_250874_, ItemLike p_248576_, String p_250171_, String p_249386_) -
nineBlockStorageRecipesRecipesWithCustomUnpacking
protected static void nineBlockStorageRecipesRecipesWithCustomUnpacking(Consumer<FinishedRecipe> p_250320_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(Consumer<FinishedRecipe> p_250423_, 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_) -
cookRecipes
protected static void cookRecipes(Consumer<FinishedRecipe> p_126007_, String p_126008_, RecipeSerializer<? extends AbstractCookingRecipe> p_250529_, int p_126010_) -
simpleCookingRecipe
protected static void simpleCookingRecipe(Consumer<FinishedRecipe> p_249398_, String p_249709_, RecipeSerializer<? extends AbstractCookingRecipe> p_251876_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_) -
waxRecipes
-
generateRecipes
-
getBaseBlock
-
insideOf
-
has
protected static InventoryChangeTrigger.TriggerInstance has(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) -
has
-
has
-
inventoryTrigger
protected static InventoryChangeTrigger.TriggerInstance inventoryTrigger(ItemPredicate... p_126012_) -
getHasName
-
getItemName
-
getSimpleRecipeName
-
getConversionRecipeName
-
getSmeltingRecipeName
-
getBlastingRecipeName
-
getName
- Specified by:
getName
in interfaceDataProvider
-