From 91a739ea713adc1ccd3f4bb579fbdf716d20b00d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 22 Mar 2017 19:54:23 -0400 Subject: [PATCH] Add Chunk.isSlimeChunk to check if a chunk can spawn slimes By: Senmori --- paper-api/src/main/java/org/bukkit/Chunk.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Chunk.java b/paper-api/src/main/java/org/bukkit/Chunk.java index f39aabcb24..57b9f6904e 100644 --- a/paper-api/src/main/java/org/bukkit/Chunk.java +++ b/paper-api/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(); }