diff options
author | Senmori <thesenmori@gmail.com> | 2017-03-22 19:54:23 -0400 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-03-24 15:17:00 +1100 |
commit | 7fd370c8c087679c0324e2acf91efa8751df0273 (patch) | |
tree | b5a3a15c10c05e24685d115ce389b1db0936a346 /src | |
parent | f8a0e0c726419197c2272f0d905a1f72270b7371 (diff) | |
download | bukkit-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.java | 7 |
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(); } |