List of builtin config key types
This list may change from time to time. For a complete list, see the javadocs of the ConfigManager class.
This is a list of all types that can be used as a type for a config field:
boolean
/Boolean
byte
/Byte
short
/Short
int
/Integer
long
/Long
float
/Float
double
/Double
String
Optional<T>
ifT
is supported. Empty optionals will getnull
in the json.List<T>
ifT
is supported.Map<String, T>
ifT
is supported.Pair<A, B>
ifA
andB
are supported.Triple<A, B, C>
ifA
,B
andC
are supported.- Every
enum
- Every
record
if the types of all record components are supported. UUID
ResourceLocation
ResourceList
Ingredient
IngredientStack
Component