summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSenmori <thesenmori@gmail.com>2017-03-22 19:54:23 -0400
committermd_5 <git@md-5.net>2017-03-24 15:17:00 +1100
commit7fd370c8c087679c0324e2acf91efa8751df0273 (patch)
treeb5a3a15c10c05e24685d115ce389b1db0936a346 /src
parentf8a0e0c726419197c2272f0d905a1f72270b7371 (diff)
downloadbukkit-7fd370c8c087679c0324e2acf91efa8751df0273.tar
bukkit-7fd370c8c087679c0324e2acf91efa8751df0273.tar.gz
bukkit-7fd370c8c087679c0324e2acf91efa8751df0273.tar.lz
bukkit-7fd370c8c087679c0324e2acf91efa8751df0273.tar.xz
bukkit-7fd370c8c087679c0324e2acf91efa8751df0273.zip
Add Chunk.isSlimeChunk to check if a chunk can spawn slimes
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/Chunk.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Chunk.java b/src/main/java/org/bukkit/Chunk.java
index f39aabcb..57b9f690 100644
--- a/src/main/java/org/bukkit/Chunk.java
+++ b/src/main/java/org/bukkit/Chunk.java
@@ -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();
}