Class MechanicalCraftingRecipeGen

java.lang.Object
net.minecraft.data.recipes.RecipeProvider
com.simibubi.create.api.data.recipe.BaseRecipeProvider
com.simibubi.create.api.data.recipe.MechanicalCraftingRecipeGen
All Implemented Interfaces:
net.minecraft.data.DataProvider
Direct Known Subclasses:
CreateMechanicalCraftingRecipeGen

public abstract class MechanicalCraftingRecipeGen extends BaseRecipeProvider
The base class for Mechanical Crafting recipe generation. Addons should extend this and use the create(Supplier) method to make recipes. For an example of how you might do this, see Create's implementation: CreateMechanicalCraftingRecipeGen. Needs to be added to a registered recipe provider to do anything, see CreateRecipeProvider
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     

    Nested classes/interfaces inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider

    BaseRecipeProvider.GeneratedRecipe

    Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider

    net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
  • Field Summary

    Fields inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider

    all, modid

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

    advancementPathProvider, recipePathProvider

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    MechanicalCraftingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    buildRecipes(net.minecraft.data.recipes.RecipeOutput output)
     
    create(com.google.common.base.Supplier<net.minecraft.world.level.ItemLike> result)
     
     

    Methods inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider

    asResource, register

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

    banner, bedFromPlanksAndWool, buildAdvancement, buildAdvancement, buildRecipes, buttonBuilder, candle, carpet, chestBoat, chiseled, chiseledBuilder, colorBlockWithDye, coloredTerracottaFromTerracottaAndDye, concretePowder, cookRecipes, copperBulb, copySmithingTemplate, copySmithingTemplate, copySmithingTemplate, cut, cutBuilder, doorBuilder, fenceBuilder, fenceGateBuilder, generateForEnabledBlockFamilies, generateRecipes, getBaseBlock, getBlastingRecipeName, getConversionRecipeName, getHasName, getItemName, getSimpleRecipeName, getSmeltingRecipeName, grate, hangingSign, has, has, has, insideOf, inventoryTrigger, inventoryTrigger, mosaicBuilder, netheriteSmithing, nineBlockStorageRecipes, nineBlockStorageRecipes, nineBlockStorageRecipesRecipesWithCustomUnpacking, nineBlockStorageRecipesWithCustomPacking, oneToOneConversionRecipe, oneToOneConversionRecipe, oreBlasting, oreCooking, oreSmelting, planksFromLog, planksFromLogs, polished, polishedBuilder, pressurePlate, pressurePlateBuilder, run, run, signBuilder, simpleCookingRecipe, slab, slabBuilder, smeltingResultFromBase, stainedGlassFromGlassAndDye, stainedGlassPaneFromGlassPaneAndDye, stainedGlassPaneFromStainedGlass, stairBuilder, stonecutterResultFromBase, stonecutterResultFromBase, 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

    • MechanicalCraftingRecipeGen

      public MechanicalCraftingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace)
  • Method Details

    • create

      protected MechanicalCraftingRecipeGen.GeneratedRecipeBuilder create(com.google.common.base.Supplier<net.minecraft.world.level.ItemLike> result)
    • buildRecipes

      protected void buildRecipes(net.minecraft.data.recipes.RecipeOutput output)
      Overrides:
      buildRecipes in class BaseRecipeProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider
      Overrides:
      getName in class net.minecraft.data.recipes.RecipeProvider