Interface RecipeOptional.Unit<T>
- All Superinterfaces:
RecipeOptional<T>
- All Known Implementing Classes:
RecipeOptional.Constant,RecipeOptional.Unit.Impl
- Enclosing interface:
RecipeOptional<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dev.latvian.mods.kubejs.recipe.schema.RecipeOptional
RecipeOptional.Constant<T>, RecipeOptional.Unit<T> -
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.recipe.schema.RecipeOptional
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptiondefault Tdefault TGets a value that is used duringdata generationof recipe schema JSONs, as well as during debugging of recipe constructors.value()Methods inherited from interface dev.latvian.mods.kubejs.recipe.schema.RecipeOptional
isDefault
-
Method Details
-
value
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceRecipeOptional<T>
-
getInformativeValue
Description copied from interface:RecipeOptionalGets a value that is used duringdata generationof recipe schema JSONs, as well as during debugging of recipe constructors.This needs to be implemented if you intend to use data generation with a custom optional type
- Specified by:
getInformativeValuein interfaceRecipeOptional<T>
-