mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Add Chunk.isSlimeChunk to check if a chunk can spawn slimes
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
parent
424b52d036
commit
91a739ea71
1 changed files with 7 additions and 0 deletions
|
@ -123,4 +123,11 @@ public interface Chunk {
|
|||
* @return true if the chunk has unloaded successfully, otherwise false
|
||||
*/
|
||||
boolean unload();
|
||||
|
||||
/**
|
||||
* Checks if this chunk can spawn slimes without being a swamp biome.
|
||||
*
|
||||
* @return true if slimes are able to spawn in this chunk
|
||||
*/
|
||||
boolean isSlimeChunk();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue