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
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields inherited from class net.minecraft.data.recipes.RecipeProvider

    output, registries
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModRecipeProvider(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.data.recipes.RecipeOutput output)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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>
    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)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class net.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 recipe
      pOutput - is the output from recipe
      pGroup - 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 recipe
      pOutput - is the output from recipe
      pGroup - 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.output
      pIngredients - is the list of ingredients
      pCategory - the category of output
      pResult - is the output of recipe
      pGroup - is the group of material
    • oreSmelting

      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)
    • oreBlasting

      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)
    • 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)