SPIGOT-7214: Add CraftChunk and CraftChunkSnapshot contains biome method

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2023-01-28 11:49:44 +11:00
parent 0bb0794be6
commit c68938c935
2 changed files with 17 additions and 0 deletions

View File

@@ -164,4 +164,12 @@ public interface ChunkSnapshot {
* @return if the block is contained within
*/
boolean contains(@NotNull BlockData block);
/**
* Tests if this chunk contains the specified biome.
*
* @param biome biome to test
* @return if the biome is contained within
*/
boolean contains(@NotNull Biome biome);
}