Add getComputedBiome API

This commit is contained in:
Jason Penilla
2022-03-14 22:45:32 -07:00
parent b0e4de9c20
commit ffdfd64ea5
2 changed files with 36 additions and 0 deletions

View File

@@ -375,10 +375,22 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr
* Returns the biome that this block resides in
*
* @return Biome type containing this block
* @see #getComputedBiome()
*/
@NotNull
Biome getBiome();
// Paper start
/**
* Gets the computed biome at the location of this Block.
*
* @return computed biome at the location of this Block.
* @see org.bukkit.RegionAccessor#getComputedBiome(int, int, int)
*/
@NotNull
Biome getComputedBiome();
// Paper end
/**
* Sets the biome that this block resides in
*