Class ProcessingRecipeGen
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
com.simibubi.create.api.data.recipe.BaseRecipeProvider
com.simibubi.create.api.data.recipe.ProcessingRecipeGen
- All Implemented Interfaces:
net.minecraft.data.DataProvider
- Direct Known Subclasses:
CompactingRecipeGen,CrushingRecipeGen,CuttingRecipeGen,DeployingRecipeGen,EmptyingRecipeGen,FillingRecipeGen,HauntingRecipeGen,ItemApplicationRecipeGen,MillingRecipeGen,MixingRecipeGen,PolishingRecipeGen,PressingRecipeGen,WashingRecipeGen
A base class for all processing recipes, containing helper methods
for datagenning processing recipes. Addons should extend this for
custom processing recipe types, and return that recipe type in
getRecipeType().-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider
BaseRecipeProvider.GeneratedRecipeNested 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, modidFields inherited from class net.minecraft.data.recipes.RecipeProvider
advancementPathProvider, recipePathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionProcessingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends ProcessingRecipe<?>>
BaseRecipeProvider.GeneratedRecipecreate(String namespace, Supplier<net.minecraft.world.level.ItemLike> singleIngredient, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a processing recipe with a single itemstack ingredient, using its id as the name of the recipeprotected <T extends ProcessingRecipe<?>>
BaseRecipeProvider.GeneratedRecipecreate(String name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with recipe definitions provided by the function, under the default namespaceprotected <T extends ProcessingRecipe<?>>
BaseRecipeProvider.GeneratedRecipecreate(Supplier<net.minecraft.world.level.ItemLike> singleIngredient, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a processing recipe with a single itemstack ingredient, using its id as the name of the recipe, under the default namespaceprotected <T extends ProcessingRecipe<?>>
BaseRecipeProvider.GeneratedRecipecreate(net.minecraft.resources.ResourceLocation name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with recipe definitions provided by the functionprotected <T extends ProcessingRecipe<?>>
BaseRecipeProvider.GeneratedRecipecreateWithDeferredId(Supplier<net.minecraft.resources.ResourceLocation> name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with supplied name and recipe definitions provided by the function@NotNull StringgetName()Gets a display name for this recipe generator.protected abstract IRecipeTypeInfoGets this recipe generators generated recipe type.protected <T extends ProcessingRecipe<?>>
ProcessingRecipeSerializer<T> protected Supplier<net.minecraft.resources.ResourceLocation> idWithSuffix(Supplier<net.minecraft.world.level.ItemLike> item, String suffix) Methods inherited from class com.simibubi.create.api.data.recipe.BaseRecipeProvider
asResource, buildRecipes, registerMethods 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
-
Constructor Details
-
ProcessingRecipeGen
public ProcessingRecipeGen(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, String defaultNamespace)
-
-
Method Details
-
create
protected <T extends ProcessingRecipe<?>> BaseRecipeProvider.GeneratedRecipe create(String namespace, Supplier<net.minecraft.world.level.ItemLike> singleIngredient, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a processing recipe with a single itemstack ingredient, using its id as the name of the recipe -
createWithDeferredId
protected <T extends ProcessingRecipe<?>> BaseRecipeProvider.GeneratedRecipe createWithDeferredId(Supplier<net.minecraft.resources.ResourceLocation> name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with supplied name and recipe definitions provided by the function -
create
protected <T extends ProcessingRecipe<?>> BaseRecipeProvider.GeneratedRecipe create(net.minecraft.resources.ResourceLocation name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with recipe definitions provided by the function -
getRecipeType
Gets this recipe generators generated recipe type. Subclasses should override this to return an instance of IRecipeTypeInfo Create uses an enum, however this is not in any way required for addons. -
getSerializer
-
idWithSuffix
-
create
protected <T extends ProcessingRecipe<?>> BaseRecipeProvider.GeneratedRecipe create(String name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with recipe definitions provided by the function, under the default namespace -
create
protected <T extends ProcessingRecipe<?>> BaseRecipeProvider.GeneratedRecipe create(Supplier<net.minecraft.world.level.ItemLike> singleIngredient, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a processing recipe with a single itemstack ingredient, using its id as the name of the recipe, under the default namespace -
getName
Gets a display name for this recipe generator. It is recommended to override this for a prettier name, however that is not required.- Specified by:
getNamein interfacenet.minecraft.data.DataProvider- Overrides:
getNamein classnet.minecraft.data.recipes.RecipeProvider
-