Package net.minecraft.data.recipes
Class RecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
DataGeneratorTest.Recipes
,ForgeRecipeProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.google.common.collect.ImmutableList<ItemLike>
protected static final com.google.common.collect.ImmutableList<ItemLike>
protected static final com.google.common.collect.ImmutableList<ItemLike>
protected static final com.google.common.collect.ImmutableList<ItemLike>
protected final DataGenerator
protected static final com.google.common.collect.ImmutableList<ItemLike>
private static final com.google.gson.Gson
protected static final com.google.common.collect.ImmutableList<ItemLike>
protected static final com.google.common.collect.ImmutableList<ItemLike>
private static final org.slf4j.Logger
protected static final com.google.common.collect.ImmutableList<ItemLike>
protected static final Map<BlockFamily.Variant,
BiFunction<ItemLike, ItemLike, RecipeBuilder>> Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
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 void
buildCraftingRecipes
(Consumer<FinishedRecipe> p_176532_) protected static RecipeBuilder
buttonBuilder
(ItemLike p_176659_, Ingredient p_176660_) 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_) static void
chiseled
(Consumer<FinishedRecipe> p_176665_, ItemLike p_176666_, ItemLike p_176667_) static ShapedRecipeBuilder
chiseledBuilder
(ItemLike p_176647_, Ingredient p_176648_) 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_, SimpleCookingSerializer<?> p_126009_, int p_126010_) static void
cut
(Consumer<FinishedRecipe> p_176653_, ItemLike p_176654_, ItemLike p_176655_) static ShapedRecipeBuilder
cutBuilder
(ItemLike p_176635_, Ingredient p_176636_) 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
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_) getName()
protected static String
getSimpleRecipeName
(ItemLike p_176645_) protected static String
getSmeltingRecipeName
(ItemLike p_176657_) 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
netheriteSmithing
(Consumer<FinishedRecipe> p_125995_, Item p_125996_, Item p_125997_) protected static void
nineBlockStorageRecipes
(Consumer<FinishedRecipe> p_176744_, ItemLike p_176745_, ItemLike p_176746_) protected static void
nineBlockStorageRecipes
(Consumer<FinishedRecipe> p_176569_, ItemLike p_176570_, ItemLike p_176571_, String p_176572_, String p_176573_, String p_176574_, String p_176575_) protected static void
nineBlockStorageRecipesRecipesWithCustomUnpacking
(Consumer<FinishedRecipe> p_176617_, ItemLike p_176618_, ItemLike p_176619_, String p_176620_, String p_176621_) protected static void
nineBlockStorageRecipesWithCustomPacking
(Consumer<FinishedRecipe> p_176563_, ItemLike p_176564_, ItemLike p_176565_, String p_176566_, String p_176567_) 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_176626_, List<ItemLike> p_176627_, ItemLike p_176628_, float p_176629_, int p_176630_, String p_176631_) protected static void
oreCooking
(Consumer<FinishedRecipe> p_176534_, SimpleCookingSerializer<?> p_176535_, List<ItemLike> p_176536_, ItemLike p_176537_, float p_176538_, int p_176539_, String p_176540_, String p_176541_) protected static void
oreSmelting
(Consumer<FinishedRecipe> p_176592_, List<ItemLike> p_176593_, ItemLike p_176594_, float p_176595_, int p_176596_, String p_176597_) protected static void
planksFromLog
(Consumer<FinishedRecipe> p_206409_, ItemLike p_206410_, TagKey<Item> p_206411_) protected static void
planksFromLogs
(Consumer<FinishedRecipe> p_206413_, ItemLike p_206414_, TagKey<Item> p_206415_) static void
polished
(Consumer<FinishedRecipe> p_176641_, ItemLike p_176642_, ItemLike p_176643_) static RecipeBuilder
polishedBuilder
(ItemLike p_176605_, Ingredient p_176606_) protected static void
pressurePlate
(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_) protected static RecipeBuilder
pressurePlateBuilder
(ItemLike p_176695_, Ingredient p_176696_) void
protected void
saveAdvancement
(HashCache p_126014_, com.google.gson.JsonObject p_126015_, Path p_126016_) private static void
saveRecipe
(HashCache p_125984_, com.google.gson.JsonObject p_125985_, Path p_125986_) protected static RecipeBuilder
signBuilder
(ItemLike p_176727_, Ingredient p_176728_) protected static void
simpleCookingRecipe
(Consumer<FinishedRecipe> p_176584_, String p_176585_, SimpleCookingSerializer<?> p_176586_, int p_176587_, ItemLike p_176588_, ItemLike p_176589_, float p_176590_) protected static void
slab
(Consumer<FinishedRecipe> p_176701_, ItemLike p_176702_, ItemLike p_176703_) protected static RecipeBuilder
slabBuilder
(ItemLike p_176705_, Ingredient p_176706_) 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_176736_, ItemLike p_176737_, ItemLike p_176738_) protected static void
stonecutterResultFromBase
(Consumer<FinishedRecipe> p_176547_, ItemLike p_176548_, ItemLike p_176549_, int p_176550_) protected static RecipeBuilder
trapdoorBuilder
(ItemLike p_176721_, Ingredient p_176722_) static void
wall
(Consumer<FinishedRecipe> p_176613_, ItemLike p_176614_, ItemLike p_176615_) static RecipeBuilder
wallBuilder
(ItemLike p_176515_, Ingredient p_176516_) 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
COAL_SMELTABLES
-
IRON_SMELTABLES
-
COPPER_SMELTABLES
-
GOLD_SMELTABLES
-
DIAMOND_SMELTABLES
-
LAPIS_SMELTABLES
-
REDSTONE_SMELTABLES
-
EMERALD_SMELTABLES
-
generator
-
shapeBuilders
protected static final Map<BlockFamily.Variant,BiFunction<ItemLike, shapeBuildersItemLike, RecipeBuilder>>
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
saveRecipe
-
saveAdvancement
-
buildCraftingRecipes
-
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
-
oreBlasting
-
oreCooking
protected static void oreCooking(Consumer<FinishedRecipe> p_176534_, SimpleCookingSerializer<?> p_176535_, List<ItemLike> p_176536_, ItemLike p_176537_, float p_176538_, int p_176539_, String p_176540_, String p_176541_) -
netheriteSmithing
protected static void netheriteSmithing(Consumer<FinishedRecipe> p_125995_, Item p_125996_, Item p_125997_) -
planksFromLog
protected static void planksFromLog(Consumer<FinishedRecipe> p_206409_, ItemLike p_206410_, TagKey<Item> p_206411_) -
planksFromLogs
protected static void planksFromLogs(Consumer<FinishedRecipe> p_206413_, ItemLike p_206414_, TagKey<Item> p_206415_) -
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_) -
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
protected static void pressurePlate(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_) -
pressurePlateBuilder
-
slab
protected static void slab(Consumer<FinishedRecipe> p_176701_, ItemLike p_176702_, ItemLike p_176703_) -
slabBuilder
-
stairBuilder
-
trapdoorBuilder
-
signBuilder
-
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
public static void candle(Consumer<FinishedRecipe> p_176543_, ItemLike p_176544_, ItemLike p_176545_) -
wall
-
wallBuilder
-
polished
public static void polished(Consumer<FinishedRecipe> p_176641_, ItemLike p_176642_, ItemLike p_176643_) -
polishedBuilder
-
cut
-
cutBuilder
-
chiseled
public static void chiseled(Consumer<FinishedRecipe> p_176665_, ItemLike p_176666_, ItemLike p_176667_) -
chiseledBuilder
-
stonecutterResultFromBase
protected static void stonecutterResultFromBase(Consumer<FinishedRecipe> p_176736_, ItemLike p_176737_, ItemLike p_176738_) -
stonecutterResultFromBase
protected static void stonecutterResultFromBase(Consumer<FinishedRecipe> p_176547_, ItemLike p_176548_, ItemLike p_176549_, int p_176550_) -
smeltingResultFromBase
protected static void smeltingResultFromBase(Consumer<FinishedRecipe> p_176740_, ItemLike p_176741_, ItemLike p_176742_) -
nineBlockStorageRecipes
protected static void nineBlockStorageRecipes(Consumer<FinishedRecipe> p_176744_, ItemLike p_176745_, ItemLike p_176746_) -
nineBlockStorageRecipesWithCustomPacking
-
nineBlockStorageRecipesRecipesWithCustomUnpacking
-
nineBlockStorageRecipes
-
cookRecipes
protected static void cookRecipes(Consumer<FinishedRecipe> p_126007_, String p_126008_, SimpleCookingSerializer<?> p_126009_, int p_126010_) -
simpleCookingRecipe
protected static void simpleCookingRecipe(Consumer<FinishedRecipe> p_176584_, String p_176585_, SimpleCookingSerializer<?> p_176586_, int p_176587_, ItemLike p_176588_, ItemLike p_176589_, float p_176590_) -
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
-