Interface BiomeDataConverter<T>
- Type Parameters:
T
- Your target data type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A simple functional interface for converting a
JsonElement
into the desired data type
needed for your BiomeMap
.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
-
Method Details
-
convert
Override this method and provide a way to convert aJsonElement
into your desired data type.For primitive data values, you can also just use the following method references:
- JsonElement::getAsString
- JsonElement::getAsInt
- JsonElement::getAsDouble
- JsonElement::getAsFloat
- JsonElement::getAsLong
- JsonElement::getAsBoolean
- Parameters:
jsonElement
- TheJsonElement
to convert- Returns:
- Your desired data type.
-