From 260ae5cb5cefd1a62d69dbca5cc69c96b4e1acd6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 26 Sep 2018 17:19:10 +1000 Subject: [PATCH] SPIGOT-4397: isChunkGenerated API By: md_5 --- paper-api/src/main/java/org/bukkit/World.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index c8318d30ac..93ff5f5ad5 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -138,6 +138,15 @@ public interface World extends PluginMessageRecipient, Metadatable { */ public boolean isChunkLoaded(int x, int z); + /** + * Checks if the {@link Chunk} at the specified coordinates is generated + * + * @param x X-coordinate of the chunk + * @param z Z-coordinate of the chunk + * @return true if the chunk is generated, otherwise false + */ + public boolean isChunkGenerated(int x, int z); + /** * Checks if the {@link Chunk} at the specified coordinates is loaded and * in use by one or more players