Class BiomeProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the Biome which should be present at the provided location.getBiome
(@NotNull WorldInfo worldInfo, int x, int y, int z, @NotNull BiomeParameterPoint biomeParameterPoint) Return the Biome which should be present at the provided location.Returns a list with every biome theBiomeProvider
will use for the given world.
-
Constructor Details
-
BiomeProvider
public BiomeProvider()
-
-
Method Details
-
getBiome
@NotNull public abstract @NotNull Biome getBiome(@NotNull @NotNull WorldInfo worldInfo, int x, int y, int z) Return the Biome which should be present at the provided location.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
.- Parameters:
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- Returns:
- Biome for the given location
-
getBiome
@NotNull public @NotNull Biome getBiome(@NotNull @NotNull WorldInfo worldInfo, int x, int y, int z, @NotNull @NotNull BiomeParameterPoint biomeParameterPoint) Return the Biome which should be present at the provided location.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
. Only this method is called if both this andgetBiome(WorldInfo, int, int, int)
are overridden.- Parameters:
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 originbiomeParameterPoint
- The parameter point that is provided by default for this location (contains temperature, humidity, continentalness, erosion, depth and weirdness)- Returns:
- Biome for the given location
- See Also:
-
getBiomes
Returns a list with every biome theBiomeProvider
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
.- Parameters:
worldInfo
- The world info of the world the list will be used for- Returns:
- A list with every biome the
BiomeProvider
uses
-