java.lang.Object
io.github.thebusybiscuit.slimefun4.utils.biomes.BiomeMap<T>
Type Parameters:
T - The stored data type
All Implemented Interfaces:
Keyed

public class BiomeMap<T> extends Object implements Keyed
BiomeMaps are used to map data values to Biome constants.

We heavily utilise this method of data mapping for GEOResources, especially when supporting multiple versions of Minecraft. This way, we can have different BiomeMaps for different versions of Minecraft, in case Biome names change in-between versions.

The data type can be any type of Object. The most common type is Integer, if you are using complex objects and try to read your BiomeMap from a JsonElement, make sure to provide an adequate BiomeDataConverter to convert the raw json data.

Author:
TheBusyBiscuit