Class RecipeSchema

java.lang.Object
dev.latvian.mods.kubejs.recipe.schema.RecipeSchema
Direct Known Subclasses:
UnknownRecipeSchema

public class RecipeSchema extends Object
A recipe schema is a set of keys that defines how a recipe is constructed from both KubeJS scripts (through the constructors) and JSON files (using the deserialize(SourceLine, RecipeTypeFunction, ResourceLocation, JsonObject) method).

The schema also defines a recipeFactory in order to create a KubeRecipe object that implements serialization logic, post-load validation (KubeRecipe.validate(RecipeValidationContext)), as well as entirely custom logic such as additional methods a developer may call from scripts.

See Also: