Package net.minestom.server.world.biomes
Class BiomeManager
java.lang.Object
net.minestom.server.world.biomes.BiomeManager
Allows servers to register custom dimensions. Also used during player joining to send the list of all existing dimensions.
Contains Biomes.PLAINS by default but can be removed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new biome.getById(int id) Gets a biome by its id.getByName(NamespaceID namespaceID) voidremoveBiome(Biome biome) Removes a biome.org.jglrxavpok.hephaistos.nbt.NBTCompoundtoNBT()Returns an immutable copy of the biomes already registered.
-
Constructor Details
-
BiomeManager
public BiomeManager()
-
-
Method Details
-
addBiome
Adds a new biome. This does NOT send the new list to players.- Parameters:
biome- the biome to add
-
removeBiome
Removes a biome. This does NOT send the new list to players.- Parameters:
biome- the biome to remove
-
unmodifiableCollection
Returns an immutable copy of the biomes already registered.- Returns:
- an immutable copy of the biomes already registered
-
getById
Gets a biome by its id.- Parameters:
id- the id of the biome- Returns:
- the
Biomelinked to this id
-
getByName
-
toNBT
public org.jglrxavpok.hephaistos.nbt.NBTCompound toNBT()
-