Class RecipeTypeEntry.Builder
java.lang.Object
com.minecolonies.api.crafting.registry.RecipeTypeEntry.Builder
- Enclosing class:
- RecipeTypeEntry
Builder for a
AbstractRecipeType.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newRecipeTypeEntrybuilder.setRecipeTypeProducer(Function<IRecipeStorage, AbstractRecipeType<IRecipeStorage>> recipeTypeProducer) Setter the for the producer.setRegistryName(net.minecraft.resources.ResourceLocation registryName) Setter for the registry name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRecipeTypeProducer
public RecipeTypeEntry.Builder setRecipeTypeProducer(Function<IRecipeStorage, AbstractRecipeType<IRecipeStorage>> recipeTypeProducer) Setter the for the producer.- Parameters:
recipeTypeProducer- The producer forAbstractRecipeType.- Returns:
- The builder.
-
setRegistryName
public RecipeTypeEntry.Builder setRegistryName(net.minecraft.resources.ResourceLocation registryName) Setter for the registry name.- Parameters:
registryName- The registry name.- Returns:
- The builder.
-
createRecipeTypeEntry
Creates a newRecipeTypeEntrybuilder.- Returns:
- The created
RecipeTypeEntry.
-