Package dev.latvian.mods.kubejs.recipe
Class RecipeSchemaProvider.SchemaDataBuilder
java.lang.Object
dev.latvian.mods.kubejs.recipe.RecipeSchemaProvider.SchemaDataBuilder
- Enclosing class:
RecipeSchemaProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructors(RecipeSchemaData.ConstructorData... constructors) Add custom constructors which can be used instead of the key-based defaultconstructors(List<RecipeSchemaData.ConstructorData> constructors) Add custom constructors which can be used instead of the key-based defaultfunction(String name, RecipeSchemaFunction function) Add the function to the recipe, used likeevent.recipes.my.recipe(<recipe args>).<name>(<function args>)functions(Map<String, RecipeSchemaFunction> functions) Add the functions to the recipe, seefunction(String, RecipeSchemaFunction)hidden()Nominally, if this recipe type should be hidden...hidden(boolean hidden) Nominally, if this recipe type should be hidden...keyDatas(RecipeSchemaData.RecipeKeyData... keys) Adds the rawRecipeKeyDatasAdds the rawRecipeKeyDatasAdds theRecipeKeys, automatically converting them toRecipeKeyDatasAdds theRecipeKeys, automatically converting them toRecipeKeyDataskeysForUniqueId(String... keys) The keys to use when generating a unique id for the recipekeysForUniqueId(List<String> keys) The keys to use when generating a unique id for the recipeThe names for accessing this recipe via a special method, e.g.The names for accessing this recipe via a special method, e.g.mergeData(boolean keys, boolean constructors, boolean unique, boolean postProcessors) If values fromparent schemasshould be merged when baking the recipe schemaoverrideKey(RecipeKey<T> key, T optionalValue) Specify the default optional value of a keyoverrideType(net.minecraft.resources.ResourceLocation type) Specifies an alternative recipe serializer to use instead of the one associated with this recipeparent(net.minecraft.resources.ResourceLocation parent) Sets the parent recipe type, which acts as a fallback/proxy for recipe methods.postProcessors(RecipePostProcessor... processors) Post processors to apply to recipes, seeKeyPatternCleanupPostProcessorpostProcessors(List<RecipePostProcessor> processors) Post processors to apply to recipes, seeKeyPatternCleanupPostProcessorrecipeFactory(net.minecraft.resources.ResourceLocation factory) Set therecipe factoryto be used for this recipe type.
-
Constructor Details
-
SchemaDataBuilder
public SchemaDataBuilder()
-
-
Method Details
-
parent
public RecipeSchemaProvider.SchemaDataBuilder parent(net.minecraft.resources.ResourceLocation parent) Sets the parent recipe type, which acts as a fallback/proxy for recipe methods. See vanilla's smoking invalid input: '&' blasting recipe types for examples. -
overrideType
public RecipeSchemaProvider.SchemaDataBuilder overrideType(net.minecraft.resources.ResourceLocation type) Specifies an alternative recipe serializer to use instead of the one associated with this recipe -
recipeFactory
public RecipeSchemaProvider.SchemaDataBuilder recipeFactory(net.minecraft.resources.ResourceLocation factory) Set therecipe factoryto be used for this recipe type. See#registerRecipeFactoriesfor registering custom factories -
keys
Adds theRecipeKeys, automatically converting them toRecipeKeyDatas -
keys
Adds theRecipeKeys, automatically converting them toRecipeKeyDatas -
keyDatas
Adds the rawRecipeKeyDatas -
keyDatas
Adds the rawRecipeKeyDatas -
constructors
public RecipeSchemaProvider.SchemaDataBuilder constructors(RecipeSchemaData.ConstructorData... constructors) Add custom constructors which can be used instead of the key-based default -
constructors
public RecipeSchemaProvider.SchemaDataBuilder constructors(List<RecipeSchemaData.ConstructorData> constructors) Add custom constructors which can be used instead of the key-based default -
function
Add the function to the recipe, used likeevent.recipes.my.recipe(<recipe args>).<name>(<function args>) -
functions
Add the functions to the recipe, seefunction(String, RecipeSchemaFunction) -
overrideKey
public <T> RecipeSchemaProvider.SchemaDataBuilder overrideKey(RecipeKey<T> key, @Nullable T optionalValue) Specify the default optional value of a key -
mappings
The names for accessing this recipe via a special method, e.g.event.recipes.myMapping(... -
mappings
The names for accessing this recipe via a special method, e.g.event.recipes.myMapping(... -
keysForUniqueId
The keys to use when generating a unique id for the recipe -
keysForUniqueId
The keys to use when generating a unique id for the recipe -
postProcessors
Post processors to apply to recipes, seeKeyPatternCleanupPostProcessor -
postProcessors
Post processors to apply to recipes, seeKeyPatternCleanupPostProcessor -
mergeData
public RecipeSchemaProvider.SchemaDataBuilder mergeData(boolean keys, boolean constructors, boolean unique, boolean postProcessors) If values fromparent schemasshould be merged when baking the recipe schema
-