Interface RecipeOptional<T>
- All Known Implementing Classes:
RecipeOptional.Constant
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Details
-
DEFAULT
-
-
Method Details
-
getDefaultValue
-
getInformativeValue
-
getValueForDataGeneration
Gets a value that can be encoded into json by a recipe key's codec. For use indata generationThis must be implemented if you intend to use data generation with a custom optional type
-
isDefault
default boolean isDefault()
-