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