Class ProcessingRecipeGen
java.lang.Object
net.minecraft.data.recipes.RecipeProvider
com.simibubi.create.foundation.data.recipe.CreateRecipeProvider
com.simibubi.create.foundation.data.recipe.ProcessingRecipeGen
- All Implemented Interfaces:
net.minecraft.data.DataProvider
- Direct Known Subclasses:
CompactingRecipeGen,CrushingRecipeGen,CuttingRecipeGen,DeployingRecipeGen,EmptyingRecipeGen,FillingRecipeGen,HauntingRecipeGen,MillingRecipeGen,MixingRecipeGen,PolishingRecipeGen,PressingRecipeGen,WashingRecipeGen
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.foundation.data.recipe.CreateRecipeProvider
CreateRecipeProvider.GeneratedRecipe, CreateRecipeProvider.I, CreateRecipeProvider.Marker -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final List<ProcessingRecipeGen>Fields inherited from class com.simibubi.create.foundation.data.recipe.CreateRecipeProvider
allFields inherited from class net.minecraft.data.recipes.RecipeProvider
generatorFields inherited from interface net.minecraft.data.DataProvider
SHA1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends ProcessingRecipe<?>>
CreateRecipeProvider.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<?>>
CreateRecipeProvider.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<?>>
CreateRecipeProvider.GeneratedRecipecreateWithDeferredId(Supplier<net.minecraft.resources.ResourceLocation> name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) getName()protected abstract IRecipeTypeInfoprotected <T extends ProcessingRecipe<?>>
ProcessingRecipeSerializer<T>protected Supplier<net.minecraft.resources.ResourceLocation>idWithSuffix(Supplier<net.minecraft.world.level.ItemLike> item, String suffix) static voidregisterAll(net.minecraft.data.DataGenerator gen) Methods inherited from class com.simibubi.create.foundation.data.recipe.CreateRecipeProvider
buildCraftingRecipes, registerMethods inherited from class net.minecraft.data.recipes.RecipeProvider
candle, chiseled, chiseledBuilder, cut, cutBuilder, has, has, insideOf, inventoryTrigger, polished, polishedBuilder, run, saveAdvancement, wall, wallBuilder
-
Field Details
-
GENERATORS
-
BUCKET
protected static final int BUCKET- See Also:
-
BOTTLE
protected static final int BOTTLE- See Also:
-
-
Constructor Details
-
ProcessingRecipeGen
public ProcessingRecipeGen(net.minecraft.data.DataGenerator generator)
-
-
Method Details
-
registerAll
public static void registerAll(net.minecraft.data.DataGenerator gen) -
create
protected <T extends ProcessingRecipe<?>> CreateRecipeProvider.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<?>> CreateRecipeProvider.GeneratedRecipe createWithDeferredId(Supplier<net.minecraft.resources.ResourceLocation> name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) -
create
protected <T extends ProcessingRecipe<?>> CreateRecipeProvider.GeneratedRecipe create(net.minecraft.resources.ResourceLocation name, UnaryOperator<ProcessingRecipeBuilder<T>> transform) Create a new processing recipe, with recipe definitions provided by the function -
getRecipeType
-
getSerializer
-
idWithSuffix
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider- Overrides:
getNamein classnet.minecraft.data.recipes.RecipeProvider
-