summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-26 17:19:10 +1000
committermd_5 <git@md-5.net>2018-09-26 17:19:10 +1000
commit0812ce2ccec4dce83fe382965242e35ec4022fac (patch)
tree9e10693ed808e8f6e0f87ed4d1733ff417ec1707 /src
parentb9620fd935d0e576a919297e394580a5c3fe4ae8 (diff)
downloadbukkit-0812ce2ccec4dce83fe382965242e35ec4022fac.tar
bukkit-0812ce2ccec4dce83fe382965242e35ec4022fac.tar.gz
bukkit-0812ce2ccec4dce83fe382965242e35ec4022fac.tar.lz
bukkit-0812ce2ccec4dce83fe382965242e35ec4022fac.tar.xz
bukkit-0812ce2ccec4dce83fe382965242e35ec4022fac.zip
SPIGOT-4397: isChunkGenerated API
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/World.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index c8318d30..93ff5f5a 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -139,6 +139,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
*