mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 00:52:22 -07:00
Add Chunk.isSlimeChunk to check if a chunk can spawn slimes
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
@@ -123,4 +123,11 @@ public interface Chunk {
|
|||||||
* @return true if the chunk has unloaded successfully, otherwise false
|
* @return true if the chunk has unloaded successfully, otherwise false
|
||||||
*/
|
*/
|
||||||
boolean unload();
|
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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user