public abstract class BiomeProvider extends Object
Constructor and Description |
---|
BiomeProvider() |
Modifier and Type | Method and Description |
---|---|
abstract Biome |
getBiome(WorldInfo worldInfo,
int x,
int y,
int z)
Return the Biome which should be present at the provided location.
|
abstract List<Biome> |
getBiomes(WorldInfo worldInfo)
Returns a list with every biome the
BiomeProvider will use for
the given world. |
@NotNull public abstract Biome getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z)
Notes:
This method must be completely thread safe and able to handle multiple concurrent callers.
This method should only return biomes which are present in the list
returned by getBiomes(WorldInfo)
This method should never return Biome.CUSTOM
.
worldInfo
- The world info of the world the biome will be used forx
- The X-coordinate from world originy
- The Y-coordinate from world originz
- The Z-coordinate from world origin@NotNull public abstract List<Biome> getBiomes(@NotNull WorldInfo worldInfo)
BiomeProvider
will use for
the given world.
Notes:
This method only gets called once, when the world is loaded. Returning another list or modifying the values from the initial returned list later one, are not respected.
This method should never return a list which contains
Biome.CUSTOM
.
worldInfo
- The world info of the world the list will be used forBiomeProvider
usesCopyright © 2022. All rights reserved.