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
Modifier and TypeFieldDescriptionprotected final PackOutput.PathProvider
protected final PackOutput.PathProvider
private final CompletableFuture
<HolderLookup.Provider> 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
ConstructorDescriptionRecipeProvider
(PackOutput p_248933_, CompletableFuture<HolderLookup.Provider> p_333797_) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
banner
(RecipeOutput p_300693_, ItemLike p_126083_, ItemLike p_126084_) protected static void
bedFromPlanksAndWool
(RecipeOutput p_300515_, ItemLike p_126075_, ItemLike p_126076_) protected CompletableFuture
<?> buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_335995_, AdvancementHolder p_297687_) protected abstract void
buildRecipes
(RecipeOutput p_297267_) protected static RecipeBuilder
buttonBuilder
(ItemLike p_176659_, Ingredient p_176660_) protected static void
candle
(RecipeOutput p_299296_, ItemLike p_176544_, ItemLike p_176545_) protected static void
carpet
(RecipeOutput p_298709_, ItemLike p_176718_, ItemLike p_176719_) protected static void
chestBoat
(RecipeOutput p_300411_, ItemLike p_236373_, ItemLike p_236374_) protected static void
chiseled
(RecipeOutput p_301222_, 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
colorBlockWithDye
(RecipeOutput p_297350_, List<Item> p_289675_, List<Item> p_289672_, String p_289641_) protected static void
coloredTerracottaFromTerracottaAndDye
(RecipeOutput p_297522_, ItemLike p_126099_, ItemLike p_126100_) protected static void
concretePowder
(RecipeOutput p_300890_, ItemLike p_126103_, ItemLike p_126104_) protected static <T extends AbstractCookingRecipe>
voidcookRecipes
(RecipeOutput p_298337_, String p_126008_, RecipeSerializer<T> p_250529_, AbstractCookingRecipe.Factory<T> p_312851_, int p_126010_) protected static void
copperBulb
(RecipeOutput p_310731_, Block p_312293_, Block p_312258_) protected static void
copySmithingTemplate
(RecipeOutput p_299385_, ItemLike p_267133_, TagKey<Item> p_298808_) protected static void
copySmithingTemplate
(RecipeOutput p_300831_, ItemLike p_266974_, ItemLike p_298586_) protected static void
cut
(RecipeOutput p_297773_, 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 static void
generateForEnabledBlockFamilies
(RecipeOutput p_300618_, FeatureFlagSet p_251836_) protected static void
generateRecipes
(RecipeOutput p_299904_, BlockFamily p_176582_, FeatureFlagSet p_312313_) 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
grate
(RecipeOutput p_311070_, Block p_309854_, Block p_310802_) protected static void
hangingSign
(RecipeOutput p_300811_, ItemLike p_252355_, ItemLike p_250437_) private static Criterion
<InventoryChangeTrigger.TriggerInstance> has
(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) protected static Criterion
<InventoryChangeTrigger.TriggerInstance> protected static Criterion
<InventoryChangeTrigger.TriggerInstance> private static Criterion
<EnterBlockTrigger.TriggerInstance> private static Criterion
<InventoryChangeTrigger.TriggerInstance> inventoryTrigger
(ItemPredicate... p_297226_) private static Criterion
<InventoryChangeTrigger.TriggerInstance> inventoryTrigger
(ItemPredicate.Builder... p_299527_) protected static void
mosaicBuilder
(RecipeOutput p_298750_, RecipeCategory p_248788_, ItemLike p_251925_, ItemLike p_252242_) protected static void
netheriteSmithing
(RecipeOutput p_298409_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) protected static void
nineBlockStorageRecipes
(RecipeOutput p_298715_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) private static void
nineBlockStorageRecipes
(RecipeOutput p_298159_, 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
(RecipeOutput p_298590_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) protected static void
nineBlockStorageRecipesWithCustomPacking
(RecipeOutput p_300453_, RecipeCategory p_250885_, ItemLike p_251651_, RecipeCategory p_250874_, ItemLike p_248576_, String p_250171_, String p_249386_) protected static void
oneToOneConversionRecipe
(RecipeOutput p_299023_, ItemLike p_176553_, ItemLike p_176554_, String p_176555_) protected static void
oneToOneConversionRecipe
(RecipeOutput p_301230_, ItemLike p_176558_, ItemLike p_176559_, String p_176560_, int p_176561_) protected static void
oreBlasting
(RecipeOutput p_298528_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_) private static <T extends AbstractCookingRecipe>
voidoreCooking
(RecipeOutput p_297621_, RecipeSerializer<T> p_251817_, AbstractCookingRecipe.Factory<T> p_312098_, 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
(RecipeOutput p_300202_, List<ItemLike> p_250172_, RecipeCategory p_250588_, ItemLike p_251868_, float p_250789_, int p_252144_, String p_251687_) protected static void
planksFromLog
(RecipeOutput p_298877_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) protected static void
planksFromLogs
(RecipeOutput p_298139_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_) protected static void
polished
(RecipeOutput p_300055_, 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
(RecipeOutput p_299733_, ItemLike p_176692_, ItemLike p_176693_) protected static RecipeBuilder
pressurePlateBuilder
(RecipeCategory p_251447_, ItemLike p_251989_, Ingredient p_249211_) final CompletableFuture
<?> run
(CachedOutput p_254020_) protected CompletableFuture
<?> run
(CachedOutput p_331109_, HolderLookup.Provider p_328892_) protected CompletableFuture
<?> saveAdvancement
(CachedOutput output, ResourceLocation advancementId, com.google.gson.JsonElement advancement) 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_) private static <T extends AbstractCookingRecipe>
voidsimpleCookingRecipe
(RecipeOutput p_301359_, String p_249709_, RecipeSerializer<T> p_251876_, AbstractCookingRecipe.Factory<T> p_311509_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_) protected static void
slab
(RecipeOutput p_300089_, RecipeCategory p_251848_, ItemLike p_249368_, ItemLike p_252133_) protected static RecipeBuilder
slabBuilder
(RecipeCategory p_251707_, ItemLike p_251284_, Ingredient p_248824_) private static void
smeltingResultFromBase
(RecipeOutput p_298757_, ItemLike p_176741_, ItemLike p_176742_) protected static void
stainedGlassFromGlassAndDye
(RecipeOutput p_297360_, ItemLike p_126087_, ItemLike p_126088_) protected static void
stainedGlassPaneFromGlassPaneAndDye
(RecipeOutput p_298776_, ItemLike p_126095_, ItemLike p_126096_) protected static void
stainedGlassPaneFromStainedGlass
(RecipeOutput p_300949_, ItemLike p_126091_, ItemLike p_126092_) protected static RecipeBuilder
stairBuilder
(ItemLike p_176711_, Ingredient p_176712_) protected static void
stonecutterResultFromBase
(RecipeOutput p_299266_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_) protected static void
stonecutterResultFromBase
(RecipeOutput p_300991_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_, int p_301035_) protected static void
threeByThreePacker
(RecipeOutput p_299853_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) protected static void
threeByThreePacker
(RecipeOutput p_298075_, 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
trimSmithing
(RecipeOutput p_297574_, Item p_285461_, ResourceLocation p_285044_) protected static void
twoByTwoPacker
(RecipeOutput p_297675_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) protected static void
wall
(RecipeOutput p_298550_, 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
(RecipeOutput p_298400_, FeatureFlagSet p_312821_) protected static void
woodenBoat
(RecipeOutput p_300366_, ItemLike p_126023_, ItemLike p_126024_) protected static void
woodFromLogs
(RecipeOutput p_298359_, ItemLike p_126004_, ItemLike p_126005_)
-
Field Details
-
recipePathProvider
-
advancementPathProvider
-
registries
-
SHAPE_BUILDERS
private static final Map<BlockFamily.Variant,BiFunction<ItemLike, SHAPE_BUILDERSItemLike, RecipeBuilder>>
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
run
-
saveAdvancement
@Nullable protected CompletableFuture<?> saveAdvancement(CachedOutput output, ResourceLocation advancementId, com.google.gson.JsonElement advancement) 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_, HolderLookup.Provider p_335995_, AdvancementHolder p_297687_) -
buildRecipes
-
generateForEnabledBlockFamilies
protected static void generateForEnabledBlockFamilies(RecipeOutput p_300618_, FeatureFlagSet p_251836_) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput p_299023_, ItemLike p_176553_, ItemLike p_176554_, @Nullable String p_176555_) -
oneToOneConversionRecipe
protected static void oneToOneConversionRecipe(RecipeOutput p_301230_, ItemLike p_176558_, ItemLike p_176559_, @Nullable String p_176560_, int p_176561_) -
oreSmelting
protected static void oreSmelting(RecipeOutput p_300202_, 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_298528_, List<ItemLike> p_251504_, RecipeCategory p_248846_, ItemLike p_249735_, float p_248783_, int p_250303_, String p_251984_) -
oreCooking
private static <T extends AbstractCookingRecipe> void oreCooking(RecipeOutput p_297621_, RecipeSerializer<T> p_251817_, AbstractCookingRecipe.Factory<T> p_312098_, 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_298409_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) -
trimSmithing
protected static void trimSmithing(RecipeOutput p_297574_, Item p_285461_, ResourceLocation p_285044_) -
twoByTwoPacker
protected static void twoByTwoPacker(RecipeOutput p_297675_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) -
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput p_298075_, RecipeCategory p_259247_, ItemLike p_259376_, ItemLike p_259717_, String p_260308_) -
threeByThreePacker
protected static void threeByThreePacker(RecipeOutput p_299853_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) -
planksFromLog
protected static void planksFromLog(RecipeOutput p_298877_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) -
planksFromLogs
protected static void planksFromLogs(RecipeOutput p_298139_, 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_300089_, 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_300515_, ItemLike p_126075_, ItemLike p_126076_) -
banner
-
stainedGlassFromGlassAndDye
protected static void stainedGlassFromGlassAndDye(RecipeOutput p_297360_, ItemLike p_126087_, ItemLike p_126088_) -
stainedGlassPaneFromStainedGlass
protected static void stainedGlassPaneFromStainedGlass(RecipeOutput p_300949_, ItemLike p_126091_, ItemLike p_126092_) -
stainedGlassPaneFromGlassPaneAndDye
protected static void stainedGlassPaneFromGlassPaneAndDye(RecipeOutput p_298776_, ItemLike p_126095_, ItemLike p_126096_) -
coloredTerracottaFromTerracottaAndDye
protected static void coloredTerracottaFromTerracottaAndDye(RecipeOutput p_297522_, ItemLike p_126099_, ItemLike p_126100_) -
concretePowder
protected static void concretePowder(RecipeOutput p_300890_, ItemLike p_126103_, ItemLike p_126104_) -
candle
-
wall
protected static void wall(RecipeOutput p_298550_, 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_300055_, 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_297773_, 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_301222_, RecipeCategory p_251604_, ItemLike p_251049_, ItemLike p_252267_) -
mosaicBuilder
protected static void mosaicBuilder(RecipeOutput p_298750_, 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_299266_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_) -
stonecutterResultFromBase
protected static void stonecutterResultFromBase(RecipeOutput p_300991_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_, int p_301035_) -
smeltingResultFromBase
private static void smeltingResultFromBase(RecipeOutput p_298757_, ItemLike p_176741_, ItemLike p_176742_) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(RecipeOutput p_298715_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) -
nineBlockStorageRecipesWithCustomPacking
protected static void nineBlockStorageRecipesWithCustomPacking(RecipeOutput p_300453_, 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_298590_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) -
nineBlockStorageRecipes
private static void nineBlockStorageRecipes(RecipeOutput p_298159_, 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_299385_, ItemLike p_267133_, TagKey<Item> p_298808_) -
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput p_300831_, ItemLike p_266974_, ItemLike p_298586_) -
cookRecipes
protected static <T extends AbstractCookingRecipe> void cookRecipes(RecipeOutput p_298337_, String p_126008_, RecipeSerializer<T> p_250529_, AbstractCookingRecipe.Factory<T> p_312851_, int p_126010_) -
simpleCookingRecipe
private static <T extends AbstractCookingRecipe> void simpleCookingRecipe(RecipeOutput p_301359_, String p_249709_, RecipeSerializer<T> p_251876_, AbstractCookingRecipe.Factory<T> p_311509_, int p_249258_, ItemLike p_250669_, ItemLike p_250224_, float p_252138_) -
waxRecipes
-
grate
-
copperBulb
-
generateRecipes
protected static void generateRecipes(RecipeOutput p_299904_, BlockFamily p_176582_, FeatureFlagSet p_312313_) -
getBaseBlock
-
insideOf
-
has
private static Criterion<InventoryChangeTrigger.TriggerInstance> has(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) -
has
-
has
-
inventoryTrigger
private static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate.Builder... p_299527_) -
inventoryTrigger
private static Criterion<InventoryChangeTrigger.TriggerInstance> inventoryTrigger(ItemPredicate... p_297226_) -
getHasName
-
getItemName
-
getSimpleRecipeName
-
getConversionRecipeName
-
getSmeltingRecipeName
-
getBlastingRecipeName
-
getName
- Specified by:
getName
in interfaceDataProvider
-