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 TypeFieldDescriptionprivate static com.google.common.collect.ImmutableList<ItemLike>
private static com.google.common.collect.ImmutableList<ItemLike>
private static com.google.common.collect.ImmutableList<ItemLike>
private static com.google.common.collect.ImmutableList<ItemLike>
protected DataGenerator
private static com.google.common.collect.ImmutableList<ItemLike>
private static com.google.gson.Gson
private static com.google.common.collect.ImmutableList<ItemLike>
private static com.google.common.collect.ImmutableList<ItemLike>
private static org.apache.logging.log4j.Logger
private static com.google.common.collect.ImmutableList<ItemLike>
private static Map<BlockFamily.Variant,BiFunction<ItemLike,ItemLike,RecipeBuilder>>
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
banner(Consumer<FinishedRecipe> p_126082_, ItemLike p_126083_, ItemLike p_126084_)
private static void
bedFromPlanksAndWool(Consumer<FinishedRecipe> p_126074_, ItemLike p_126075_, ItemLike p_126076_)
private static void
bedFromWhiteBedAndDye(Consumer<FinishedRecipe> p_126078_, ItemLike p_126079_, ItemLike p_126080_)
protected void
buildCraftingRecipes(Consumer<FinishedRecipe> p_176532_)
private static RecipeBuilder
buttonBuilder(ItemLike p_176659_, Ingredient p_176660_)
static void
candle(Consumer<FinishedRecipe> p_176543_, ItemLike p_176544_, ItemLike p_176545_)
private 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_)
private static void
coloredCarpetFromWhiteCarpetAndDye(Consumer<FinishedRecipe> p_126070_, ItemLike p_126071_, ItemLike p_126072_)
private static void
coloredTerracottaFromTerracottaAndDye(Consumer<FinishedRecipe> p_126098_, ItemLike p_126099_, ItemLike p_126100_)
private static void
coloredWoolFromWhiteWoolAndDye(Consumer<FinishedRecipe> p_126062_, ItemLike p_126063_, ItemLike p_126064_)
private static void
concretePowder(Consumer<FinishedRecipe> p_126102_, ItemLike p_126103_, ItemLike p_126104_)
private 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_)
private static RecipeBuilder
doorBuilder(ItemLike p_176671_, Ingredient p_176672_)
private static RecipeBuilder
fenceBuilder(ItemLike p_176679_, Ingredient p_176680_)
private static RecipeBuilder
fenceGateBuilder(ItemLike p_176685_, Ingredient p_176686_)
private static void
generateRecipes(Consumer<FinishedRecipe> p_176581_, BlockFamily p_176582_)
private static Block
getBaseBlock(BlockFamily p_176524_, BlockFamily.Variant p_176525_)
private static String
getBlastingRecipeName(ItemLike p_176669_)
private static String
getConversionRecipeName(ItemLike p_176518_, ItemLike p_176519_)
private static String
getHasName(ItemLike p_176603_)
private static String
getItemName(ItemLike p_176633_)
getName()
private static String
getSimpleRecipeName(ItemLike p_176645_)
private static String
getSmeltingRecipeName(ItemLike p_176657_)
private 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_)
private static void
netheriteSmithing(Consumer<FinishedRecipe> p_125995_, Item p_125996_, Item p_125997_)
private static void
nineBlockStorageRecipes(Consumer<FinishedRecipe> p_176744_, ItemLike p_176745_, ItemLike p_176746_)
private 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_)
private static void
nineBlockStorageRecipesRecipesWithCustomUnpacking(Consumer<FinishedRecipe> p_176617_, ItemLike p_176618_, ItemLike p_176619_, String p_176620_, String p_176621_)
private static void
nineBlockStorageRecipesWithCustomPacking(Consumer<FinishedRecipe> p_176563_, ItemLike p_176564_, ItemLike p_176565_, String p_176566_, String p_176567_)
private static void
oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176552_, ItemLike p_176553_, ItemLike p_176554_, String p_176555_)
private static void
oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176557_, ItemLike p_176558_, ItemLike p_176559_, String p_176560_, int p_176561_)
private static void
oreBlasting(Consumer<FinishedRecipe> p_176626_, List<ItemLike> p_176627_, ItemLike p_176628_, float p_176629_, int p_176630_, String p_176631_)
private 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_)
private static void
oreSmelting(Consumer<FinishedRecipe> p_176592_, List<ItemLike> p_176593_, ItemLike p_176594_, float p_176595_, int p_176596_, String p_176597_)
private static void
planksFromLog(Consumer<FinishedRecipe> p_125999_, ItemLike p_126000_, Tag<Item> p_126001_)
private static void
planksFromLogs(Consumer<FinishedRecipe> p_126018_, ItemLike p_126019_, Tag<Item> p_126020_)
static void
polished(Consumer<FinishedRecipe> p_176641_, ItemLike p_176642_, ItemLike p_176643_)
static RecipeBuilder
polishedBuilder(ItemLike p_176605_, Ingredient p_176606_)
private static void
pressurePlate(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_)
private 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_)
private static RecipeBuilder
signBuilder(ItemLike p_176727_, Ingredient p_176728_)
private 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_)
private static void
slab(Consumer<FinishedRecipe> p_176701_, ItemLike p_176702_, ItemLike p_176703_)
private static RecipeBuilder
slabBuilder(ItemLike p_176705_, Ingredient p_176706_)
private static void
smeltingResultFromBase(Consumer<FinishedRecipe> p_176740_, ItemLike p_176741_, ItemLike p_176742_)
private static void
stainedGlassFromGlassAndDye(Consumer<FinishedRecipe> p_126086_, ItemLike p_126087_, ItemLike p_126088_)
private static void
stainedGlassPaneFromGlassPaneAndDye(Consumer<FinishedRecipe> p_126094_, ItemLike p_126095_, ItemLike p_126096_)
private static void
stainedGlassPaneFromStainedGlass(Consumer<FinishedRecipe> p_126090_, ItemLike p_126091_, ItemLike p_126092_)
private static RecipeBuilder
stairBuilder(ItemLike p_176711_, Ingredient p_176712_)
private static void
stonecutterResultFromBase(Consumer<FinishedRecipe> p_176736_, ItemLike p_176737_, ItemLike p_176738_)
private static void
stonecutterResultFromBase(Consumer<FinishedRecipe> p_176547_, ItemLike p_176548_, ItemLike p_176549_, int p_176550_)
private 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_)
private static void
waxRecipes(Consumer<FinishedRecipe> p_176611_)
private static void
woodenBoat(Consumer<FinishedRecipe> p_126022_, ItemLike p_126023_, ItemLike p_126024_)
private static void
woodFromLogs(Consumer<FinishedRecipe> p_126003_, ItemLike p_126004_, ItemLike p_126005_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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
private static final Map<BlockFamily.Variant,BiFunction<ItemLike,ItemLike,RecipeBuilder>> shapeBuilders
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
saveRecipe
-
saveAdvancement
-
buildCraftingRecipes
-
oneToOneConversionRecipe
private static void oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176552_, ItemLike p_176553_, ItemLike p_176554_, @Nullable String p_176555_) -
oneToOneConversionRecipe
private static void oneToOneConversionRecipe(Consumer<FinishedRecipe> p_176557_, ItemLike p_176558_, ItemLike p_176559_, @Nullable String p_176560_, int p_176561_) -
oreSmelting
-
oreBlasting
-
oreCooking
private 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
private static void netheriteSmithing(Consumer<FinishedRecipe> p_125995_, Item p_125996_, Item p_125997_) -
planksFromLog
private static void planksFromLog(Consumer<FinishedRecipe> p_125999_, ItemLike p_126000_, Tag<Item> p_126001_) -
planksFromLogs
private static void planksFromLogs(Consumer<FinishedRecipe> p_126018_, ItemLike p_126019_, Tag<Item> p_126020_) -
woodFromLogs
private static void woodFromLogs(Consumer<FinishedRecipe> p_126003_, ItemLike p_126004_, ItemLike p_126005_) -
woodenBoat
private static void woodenBoat(Consumer<FinishedRecipe> p_126022_, ItemLike p_126023_, ItemLike p_126024_) -
buttonBuilder
-
doorBuilder
-
fenceBuilder
-
fenceGateBuilder
-
pressurePlate
private static void pressurePlate(Consumer<FinishedRecipe> p_176691_, ItemLike p_176692_, ItemLike p_176693_) -
pressurePlateBuilder
-
slab
private static void slab(Consumer<FinishedRecipe> p_176701_, ItemLike p_176702_, ItemLike p_176703_) -
slabBuilder
-
stairBuilder
-
trapdoorBuilder
-
signBuilder
-
coloredWoolFromWhiteWoolAndDye
private static void coloredWoolFromWhiteWoolAndDye(Consumer<FinishedRecipe> p_126062_, ItemLike p_126063_, ItemLike p_126064_) -
carpet
private static void carpet(Consumer<FinishedRecipe> p_176717_, ItemLike p_176718_, ItemLike p_176719_) -
coloredCarpetFromWhiteCarpetAndDye
private static void coloredCarpetFromWhiteCarpetAndDye(Consumer<FinishedRecipe> p_126070_, ItemLike p_126071_, ItemLike p_126072_) -
bedFromPlanksAndWool
private static void bedFromPlanksAndWool(Consumer<FinishedRecipe> p_126074_, ItemLike p_126075_, ItemLike p_126076_) -
bedFromWhiteBedAndDye
private static void bedFromWhiteBedAndDye(Consumer<FinishedRecipe> p_126078_, ItemLike p_126079_, ItemLike p_126080_) -
banner
private static void banner(Consumer<FinishedRecipe> p_126082_, ItemLike p_126083_, ItemLike p_126084_) -
stainedGlassFromGlassAndDye
private static void stainedGlassFromGlassAndDye(Consumer<FinishedRecipe> p_126086_, ItemLike p_126087_, ItemLike p_126088_) -
stainedGlassPaneFromStainedGlass
private static void stainedGlassPaneFromStainedGlass(Consumer<FinishedRecipe> p_126090_, ItemLike p_126091_, ItemLike p_126092_) -
stainedGlassPaneFromGlassPaneAndDye
private static void stainedGlassPaneFromGlassPaneAndDye(Consumer<FinishedRecipe> p_126094_, ItemLike p_126095_, ItemLike p_126096_) -
coloredTerracottaFromTerracottaAndDye
private static void coloredTerracottaFromTerracottaAndDye(Consumer<FinishedRecipe> p_126098_, ItemLike p_126099_, ItemLike p_126100_) -
concretePowder
private 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
public static void wall(Consumer<FinishedRecipe> p_176613_, ItemLike p_176614_, ItemLike p_176615_) -
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
private static void stonecutterResultFromBase(Consumer<FinishedRecipe> p_176736_, ItemLike p_176737_, ItemLike p_176738_) -
stonecutterResultFromBase
private static void stonecutterResultFromBase(Consumer<FinishedRecipe> p_176547_, ItemLike p_176548_, ItemLike p_176549_, int p_176550_) -
smeltingResultFromBase
private static void smeltingResultFromBase(Consumer<FinishedRecipe> p_176740_, ItemLike p_176741_, ItemLike p_176742_) -
nineBlockStorageRecipes
private static void nineBlockStorageRecipes(Consumer<FinishedRecipe> p_176744_, ItemLike p_176745_, ItemLike p_176746_) -
nineBlockStorageRecipesWithCustomPacking
-
nineBlockStorageRecipesRecipesWithCustomUnpacking
-
nineBlockStorageRecipes
-
cookRecipes
private static void cookRecipes(Consumer<FinishedRecipe> p_126007_, String p_126008_, SimpleCookingSerializer<?> p_126009_, int p_126010_) -
simpleCookingRecipe
private 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
private 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
-