Class ModRecipeProvider
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
com.rgerva.dbr.datagen.ModRecipeProvider
public class ModRecipeProvider
extends net.minecraft.data.recipes.RecipeProvider
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.minecraft.data.recipes.RecipeProvider
output, registries
-
Constructor Summary
ConstructorsConstructorDescriptionModRecipeProvider
(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.data.recipes.RecipeOutput output) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
customBlockToIngotRecipe
(net.minecraft.world.level.ItemLike pInput, net.minecraft.world.level.ItemLike pOutput, String pGroup) Custom method to generate Ingots and Blocks Recipe.protected void
customNuggetRecipe
(net.minecraft.world.level.ItemLike pInput, net.minecraft.world.level.ItemLike pOutput, String pGroup) Custom method to generate Nuggets from Ingot Recipe.protected void
oreBlasting
(net.minecraft.data.recipes.RecipeOutput recipeOutput, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, float pExperience, int pCookingTime, String pGroup) protected void
oreCook
(net.minecraft.data.recipes.RecipeOutput recipeOutput, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, String pGroup) Custom method to cook materials to output.protected <T extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
voidoreCooking
(net.minecraft.data.recipes.RecipeOutput recipeOutput, net.minecraft.world.item.crafting.RecipeSerializer<T> pCookingSerializer, net.minecraft.world.item.crafting.AbstractCookingRecipe.Factory<T> factory, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, float pExperience, int pCookingTime, String pGroup, String pRecipeName) protected void
oreSmelting
(net.minecraft.data.recipes.RecipeOutput recipeOutput, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, float pExperience, int pCookingTIme, String pGroup) Methods inherited from class net.minecraft.data.recipes.RecipeProvider
banner, bedFromPlanksAndWool, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, coloredTerracottaFromTerracottaAndDye, colorItemWithDye, colorWithDye, concretePowder, cookRecipes, copperBulb, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, dryGhast, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getSimpleRecipeName, getSmeltingRecipeName, grate, hangingSign, harness, has, has, has, insideOf, inventoryTrigger, inventoryTrigger, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreCooking, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, shaped, shaped, shapeless, shapeless, shapeless, signBuilder, simpleCookingRecipe, slab, slabBuilder, smeltingResultFromBase, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, suspiciousStew, tag, threeByThreePacker, threeByThreePacker, trapdoorBuilder, trimSmithing, twoByTwoPacker, wall, wallBuilder, waxRecipes, woodenBoat, woodFromLogs
-
Constructor Details
-
ModRecipeProvider
public ModRecipeProvider(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.data.recipes.RecipeOutput output)
-
-
Method Details
-
buildRecipes
protected void buildRecipes()- Specified by:
buildRecipes
in classnet.minecraft.data.recipes.RecipeProvider
-
customNuggetRecipe
protected void customNuggetRecipe(net.minecraft.world.level.ItemLike pInput, net.minecraft.world.level.ItemLike pOutput, String pGroup) Custom method to generate Nuggets from Ingot Recipe.- Parameters:
pInput
- is main item for recipepOutput
- is the output from recipepGroup
- is group name
-
customBlockToIngotRecipe
protected void customBlockToIngotRecipe(net.minecraft.world.level.ItemLike pInput, net.minecraft.world.level.ItemLike pOutput, String pGroup) Custom method to generate Ingots and Blocks Recipe.- Parameters:
pInput
- is main item for recipepOutput
- is the output from recipepGroup
- is group name
-
oreCook
protected void oreCook(net.minecraft.data.recipes.RecipeOutput recipeOutput, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, String pGroup) Custom method to cook materials to output.- Parameters:
recipeOutput
- is like this.outputpIngredients
- is the list of ingredientspCategory
- the category of outputpResult
- is the output of recipepGroup
- is the group of material
-
oreSmelting
-
oreBlasting
-
oreCooking
protected <T extends net.minecraft.world.item.crafting.AbstractCookingRecipe> void oreCooking(net.minecraft.data.recipes.RecipeOutput recipeOutput, net.minecraft.world.item.crafting.RecipeSerializer<T> pCookingSerializer, net.minecraft.world.item.crafting.AbstractCookingRecipe.Factory<T> factory, List<net.minecraft.world.level.ItemLike> pIngredients, net.minecraft.data.recipes.RecipeCategory pCategory, net.minecraft.world.level.ItemLike pResult, float pExperience, int pCookingTime, String pGroup, String pRecipeName)
-