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
,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_323846_) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
banner
(RecipeOutput p_301322_, ItemLike p_126083_, ItemLike p_126084_) protected static void
bedFromPlanksAndWool
(RecipeOutput p_301140_, ItemLike p_126075_, ItemLike p_126076_) protected CompletableFuture
<?> buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_) protected CompletableFuture
<?> buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_, ICondition... conditions) protected abstract void
buildRecipes
(RecipeOutput p_301172_) protected static RecipeBuilder
buttonBuilder
(ItemLike p_176659_, Ingredient p_176660_) protected static void
candle
(RecipeOutput p_301024_, ItemLike p_176544_, ItemLike p_176545_) protected static void
carpet
(RecipeOutput p_300953_, ItemLike p_176718_, ItemLike p_176719_) protected static void
chestBoat
(RecipeOutput p_300996_, ItemLike p_236373_, ItemLike p_236374_) protected static void
chiseled
(RecipeOutput p_300911_, 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_301260_, List<Item> p_289675_, List<Item> p_289672_, String p_289641_) protected static void
coloredTerracottaFromTerracottaAndDye
(RecipeOutput p_300948_, ItemLike p_126099_, ItemLike p_126100_) protected static void
concretePowder
(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 void
copperBulb
(RecipeOutput p_308971_, Block p_309026_, Block p_308866_) protected static void
copySmithingTemplate
(RecipeOutput p_300986_, ItemLike p_266974_, TagKey<Item> p_267283_) protected static void
copySmithingTemplate
(RecipeOutput p_350466_, ItemLike p_350799_, Ingredient p_350344_) protected static void
copySmithingTemplate
(RecipeOutput p_301265_, ItemLike p_267133_, ItemLike p_267023_) protected static void
cut
(RecipeOutput p_301189_, 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
(RecipeOutput p_301146_, FeatureFlagSet p_251836_) protected static void
generateRecipes
(RecipeOutput p_301014_, BlockFamily p_176582_, FeatureFlagSet p_313799_) 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_309012_, Block p_309021_, Block p_309140_) protected static void
hangingSign
(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 void
mosaicBuilder
(RecipeOutput p_301088_, RecipeCategory p_248788_, ItemLike p_251925_, ItemLike p_252242_) protected static void
netheriteSmithing
(RecipeOutput p_300886_, Item p_250046_, RecipeCategory p_248986_, Item p_250389_) protected static void
nineBlockStorageRecipes
(RecipeOutput p_301057_, RecipeCategory p_251203_, ItemLike p_251689_, RecipeCategory p_251376_, ItemLike p_248771_) protected static void
nineBlockStorageRecipes
(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 void
nineBlockStorageRecipesRecipesWithCustomUnpacking
(RecipeOutput p_301132_, RecipeCategory p_248979_, ItemLike p_249101_, RecipeCategory p_252036_, ItemLike p_250886_, String p_248768_, String p_250847_) 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_) protected static void
oneToOneConversionRecipe
(RecipeOutput p_301223_, ItemLike p_176553_, ItemLike p_176554_, String p_176555_) protected static void
oneToOneConversionRecipe
(RecipeOutput p_300968_, ItemLike p_176558_, ItemLike p_176559_, String p_176560_, int p_176561_) 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_) 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 void
oreSmelting
(RecipeOutput p_301183_, 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_301020_, ItemLike p_259052_, TagKey<Item> p_259045_, int p_259471_) protected static void
planksFromLogs
(RecipeOutput p_301221_, ItemLike p_259193_, TagKey<Item> p_259818_, int p_259807_) protected static void
polished
(RecipeOutput p_301100_, 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_301211_, 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_324494_, HolderLookup.Provider p_324248_) protected static RecipeBuilder
signBuilder
(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 void
slab
(RecipeOutput p_300949_, 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
(RecipeOutput p_300916_, ItemLike p_176741_, ItemLike p_176742_) protected static void
stainedGlassFromGlassAndDye
(RecipeOutput p_300895_, ItemLike p_126087_, ItemLike p_126088_) protected static void
stainedGlassPaneFromGlassPaneAndDye
(RecipeOutput p_301038_, ItemLike p_126095_, ItemLike p_126096_) protected static void
stainedGlassPaneFromStainedGlass
(RecipeOutput p_301233_, ItemLike p_126091_, ItemLike p_126092_) protected static RecipeBuilder
stairBuilder
(ItemLike p_176711_, Ingredient p_176712_) protected static void
stonecutterResultFromBase
(RecipeOutput p_301035_, RecipeCategory p_248911_, ItemLike p_251265_, ItemLike p_250033_) protected static void
stonecutterResultFromBase
(RecipeOutput p_301195_, RecipeCategory p_250609_, ItemLike p_251254_, ItemLike p_249666_, int p_251462_) protected static void
threeByThreePacker
(RecipeOutput p_301302_, RecipeCategory p_259186_, ItemLike p_259360_, ItemLike p_259263_) protected static void
threeByThreePacker
(RecipeOutput p_301298_, 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_301332_, Item p_285461_, ResourceLocation p_285044_) protected static void
twoByTwoPacker
(RecipeOutput p_301022_, RecipeCategory p_250881_, ItemLike p_252184_, ItemLike p_249710_) protected static void
wall
(RecipeOutput p_301176_, 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_301254_, FeatureFlagSet p_313879_) protected static void
woodenBoat
(RecipeOutput p_301315_, ItemLike p_126023_, ItemLike p_126024_) protected static void
woodFromLogs
(RecipeOutput p_301095_, 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
-
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_) -
buildAdvancement
protected CompletableFuture<?> buildAdvancement(CachedOutput p_253674_, HolderLookup.Provider p_323646_, 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_) -
copySmithingTemplate
protected static void copySmithingTemplate(RecipeOutput p_350466_, ItemLike p_350799_, Ingredient p_350344_) -
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:
getName
in interfaceDataProvider
-