SPIGOT-5422: Add support for 3-dimensional biomes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-12-11 15:26:24 +11:00
parent b8f7cbbca1
commit ff11da2791
3 changed files with 109 additions and 1 deletions

View File

@@ -104,19 +104,44 @@ public interface ChunkSnapshot {
* @param x X-coordinate (0-15)
* @param z Z-coordinate (0-15)
* @return Biome at given coordinate
* @deprecated biomes are now 3-dimensional
*/
@NotNull
@Deprecated
Biome getBiome(int x, int z);
/**
* Get raw biome temperature (0.0-1.0) at given coordinate
* Get biome at given coordinates
*
* @param x X-coordinate (0-15)
* @param y Y-coordinate (0-255)
* @param z Z-coordinate (0-15)
* @return Biome at given coordinate
*/
@NotNull
Biome getBiome(int x, int y, int z);
/**
* Get raw biome temperature at given coordinates
*
* @param x X-coordinate (0-15)
* @param z Z-coordinate (0-15)
* @return temperature at given coordinate
* @deprecated biomes are now 3-dimensional
*/
@Deprecated
double getRawBiomeTemperature(int x, int z);
/**
* Get raw biome temperature at given coordinates
*
* @param x X-coordinate (0-15)
* @param y Y-coordinate (0-15)
* @param z Z-coordinate (0-15)
* @return temperature at given coordinate
*/
double getRawBiomeTemperature(int x, int y, int z);
/**
* Get world full time when chunk snapshot was captured
*