Package net.minecraft.data
Class RecipeProvider
java.lang.Object
net.minecraft.data.RecipeProvider
- All Implemented Interfaces:
IDataProvider
- Direct Known Subclasses:
DataGeneratorTest.Recipes
,ForgeRecipeProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DataGenerator
private static final com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
banner
(Consumer<IFinishedRecipe> p_240488_0_, IItemProvider p_240488_1_, IItemProvider p_240488_2_) private static void
bedFromPlanksAndWool
(Consumer<IFinishedRecipe> p_240486_0_, IItemProvider p_240486_1_, IItemProvider p_240486_2_) private static void
bedFromWhiteBedAndDye
(Consumer<IFinishedRecipe> p_240487_0_, IItemProvider p_240487_1_, IItemProvider p_240487_2_) protected void
buildShapelessRecipes
(Consumer<IFinishedRecipe> p_200404_0_) private static void
carpetFromWool
(Consumer<IFinishedRecipe> p_240484_0_, IItemProvider p_240484_1_, IItemProvider p_240484_2_) private static void
coloredCarpetFromWhiteCarpetAndDye
(Consumer<IFinishedRecipe> p_240485_0_, IItemProvider p_240485_1_, IItemProvider p_240485_2_) private static void
coloredTerracottaFromTerracottaAndDye
(Consumer<IFinishedRecipe> p_240492_0_, IItemProvider p_240492_1_, IItemProvider p_240492_2_) private static void
coloredWoolFromWhiteWoolAndDye
(Consumer<IFinishedRecipe> p_240483_0_, IItemProvider p_240483_1_, IItemProvider p_240483_2_) private static void
concretePowder
(Consumer<IFinishedRecipe> p_240493_0_, IItemProvider p_240493_1_, IItemProvider p_240493_2_) private static void
cookRecipes
(Consumer<IFinishedRecipe> p_218445_0_, String p_218445_1_, CookingRecipeSerializer<?> p_218445_2_, int p_218445_3_) getName()
protected static InventoryChangeTrigger.Instance
protected static InventoryChangeTrigger.Instance
has
(IItemProvider p_200403_0_) protected static EnterBlockTrigger.Instance
protected static InventoryChangeTrigger.Instance
inventoryTrigger
(ItemPredicate... p_200405_0_) private static void
netheriteSmithing
(Consumer<IFinishedRecipe> p_240469_0_, Item p_240469_1_, Item p_240469_2_) private static void
planksFromLog
(Consumer<IFinishedRecipe> p_240470_0_, IItemProvider p_240470_1_, ITag<Item> p_240470_2_) private static void
planksFromLogs
(Consumer<IFinishedRecipe> p_240472_0_, IItemProvider p_240472_1_, ITag<Item> p_240472_2_) void
run
(DirectoryCache p_200398_1_) protected void
saveAdvancement
(DirectoryCache p_208310_0_, com.google.gson.JsonObject p_208310_1_, Path p_208310_2_) private static void
saveRecipe
(DirectoryCache p_208311_0_, com.google.gson.JsonObject p_208311_1_, Path p_208311_2_) private static void
stainedGlassFromGlassAndDye
(Consumer<IFinishedRecipe> p_240489_0_, IItemProvider p_240489_1_, IItemProvider p_240489_2_) private static void
stainedGlassPaneFromGlassPaneAndDye
(Consumer<IFinishedRecipe> p_240491_0_, IItemProvider p_240491_1_, IItemProvider p_240491_2_) private static void
stainedGlassPaneFromStainedGlass
(Consumer<IFinishedRecipe> p_240490_0_, IItemProvider p_240490_1_, IItemProvider p_240490_2_) private static void
woodenBoat
(Consumer<IFinishedRecipe> p_240473_0_, IItemProvider p_240473_1_, IItemProvider p_240473_2_) private static void
woodenButton
(Consumer<IFinishedRecipe> p_240474_0_, IItemProvider p_240474_1_, IItemProvider p_240474_2_) private static void
woodenDoor
(Consumer<IFinishedRecipe> p_240475_0_, IItemProvider p_240475_1_, IItemProvider p_240475_2_) private static void
woodenFence
(Consumer<IFinishedRecipe> p_240476_0_, IItemProvider p_240476_1_, IItemProvider p_240476_2_) private static void
woodenFenceGate
(Consumer<IFinishedRecipe> p_240477_0_, IItemProvider p_240477_1_, IItemProvider p_240477_2_) private static void
woodenPressurePlate
(Consumer<IFinishedRecipe> p_240478_0_, IItemProvider p_240478_1_, IItemProvider p_240478_2_) private static void
woodenSign
(Consumer<IFinishedRecipe> p_240482_0_, IItemProvider p_240482_1_, IItemProvider p_240482_2_) private static void
woodenSlab
(Consumer<IFinishedRecipe> p_240479_0_, IItemProvider p_240479_1_, IItemProvider p_240479_2_) private static void
woodenStairs
(Consumer<IFinishedRecipe> p_240480_0_, IItemProvider p_240480_1_, IItemProvider p_240480_2_) private static void
woodenTrapdoor
(Consumer<IFinishedRecipe> p_240481_0_, IItemProvider p_240481_1_, IItemProvider p_240481_2_) private static void
woodFromLogs
(Consumer<IFinishedRecipe> p_240471_0_, IItemProvider p_240471_1_, IItemProvider p_240471_2_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
generator
-
-
Constructor Details
-
RecipeProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceIDataProvider
- Throws:
IOException
-
saveRecipe
private static void saveRecipe(DirectoryCache p_208311_0_, com.google.gson.JsonObject p_208311_1_, Path p_208311_2_) -
saveAdvancement
protected void saveAdvancement(DirectoryCache p_208310_0_, com.google.gson.JsonObject p_208310_1_, Path p_208310_2_) -
buildShapelessRecipes
-
netheriteSmithing
private static void netheriteSmithing(Consumer<IFinishedRecipe> p_240469_0_, Item p_240469_1_, Item p_240469_2_) -
planksFromLog
private static void planksFromLog(Consumer<IFinishedRecipe> p_240470_0_, IItemProvider p_240470_1_, ITag<Item> p_240470_2_) -
planksFromLogs
private static void planksFromLogs(Consumer<IFinishedRecipe> p_240472_0_, IItemProvider p_240472_1_, ITag<Item> p_240472_2_) -
woodFromLogs
private static void woodFromLogs(Consumer<IFinishedRecipe> p_240471_0_, IItemProvider p_240471_1_, IItemProvider p_240471_2_) -
woodenBoat
private static void woodenBoat(Consumer<IFinishedRecipe> p_240473_0_, IItemProvider p_240473_1_, IItemProvider p_240473_2_) -
woodenButton
private static void woodenButton(Consumer<IFinishedRecipe> p_240474_0_, IItemProvider p_240474_1_, IItemProvider p_240474_2_) -
woodenDoor
private static void woodenDoor(Consumer<IFinishedRecipe> p_240475_0_, IItemProvider p_240475_1_, IItemProvider p_240475_2_) -
woodenFence
private static void woodenFence(Consumer<IFinishedRecipe> p_240476_0_, IItemProvider p_240476_1_, IItemProvider p_240476_2_) -
woodenFenceGate
private static void woodenFenceGate(Consumer<IFinishedRecipe> p_240477_0_, IItemProvider p_240477_1_, IItemProvider p_240477_2_) -
woodenPressurePlate
private static void woodenPressurePlate(Consumer<IFinishedRecipe> p_240478_0_, IItemProvider p_240478_1_, IItemProvider p_240478_2_) -
woodenSlab
private static void woodenSlab(Consumer<IFinishedRecipe> p_240479_0_, IItemProvider p_240479_1_, IItemProvider p_240479_2_) -
woodenStairs
private static void woodenStairs(Consumer<IFinishedRecipe> p_240480_0_, IItemProvider p_240480_1_, IItemProvider p_240480_2_) -
woodenTrapdoor
private static void woodenTrapdoor(Consumer<IFinishedRecipe> p_240481_0_, IItemProvider p_240481_1_, IItemProvider p_240481_2_) -
woodenSign
private static void woodenSign(Consumer<IFinishedRecipe> p_240482_0_, IItemProvider p_240482_1_, IItemProvider p_240482_2_) -
coloredWoolFromWhiteWoolAndDye
private static void coloredWoolFromWhiteWoolAndDye(Consumer<IFinishedRecipe> p_240483_0_, IItemProvider p_240483_1_, IItemProvider p_240483_2_) -
carpetFromWool
private static void carpetFromWool(Consumer<IFinishedRecipe> p_240484_0_, IItemProvider p_240484_1_, IItemProvider p_240484_2_) -
coloredCarpetFromWhiteCarpetAndDye
private static void coloredCarpetFromWhiteCarpetAndDye(Consumer<IFinishedRecipe> p_240485_0_, IItemProvider p_240485_1_, IItemProvider p_240485_2_) -
bedFromPlanksAndWool
private static void bedFromPlanksAndWool(Consumer<IFinishedRecipe> p_240486_0_, IItemProvider p_240486_1_, IItemProvider p_240486_2_) -
bedFromWhiteBedAndDye
private static void bedFromWhiteBedAndDye(Consumer<IFinishedRecipe> p_240487_0_, IItemProvider p_240487_1_, IItemProvider p_240487_2_) -
banner
private static void banner(Consumer<IFinishedRecipe> p_240488_0_, IItemProvider p_240488_1_, IItemProvider p_240488_2_) -
stainedGlassFromGlassAndDye
private static void stainedGlassFromGlassAndDye(Consumer<IFinishedRecipe> p_240489_0_, IItemProvider p_240489_1_, IItemProvider p_240489_2_) -
stainedGlassPaneFromStainedGlass
private static void stainedGlassPaneFromStainedGlass(Consumer<IFinishedRecipe> p_240490_0_, IItemProvider p_240490_1_, IItemProvider p_240490_2_) -
stainedGlassPaneFromGlassPaneAndDye
private static void stainedGlassPaneFromGlassPaneAndDye(Consumer<IFinishedRecipe> p_240491_0_, IItemProvider p_240491_1_, IItemProvider p_240491_2_) -
coloredTerracottaFromTerracottaAndDye
private static void coloredTerracottaFromTerracottaAndDye(Consumer<IFinishedRecipe> p_240492_0_, IItemProvider p_240492_1_, IItemProvider p_240492_2_) -
concretePowder
private static void concretePowder(Consumer<IFinishedRecipe> p_240493_0_, IItemProvider p_240493_1_, IItemProvider p_240493_2_) -
cookRecipes
private static void cookRecipes(Consumer<IFinishedRecipe> p_218445_0_, String p_218445_1_, CookingRecipeSerializer<?> p_218445_2_, int p_218445_3_) -
insideOf
-
has
-
has
-
inventoryTrigger
-
getName
- Specified by:
getName
in interfaceIDataProvider
-