summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0cb21363..59dd1792 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -153,6 +153,15 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean isChunkLoaded(int x, int z);
/**
+ * Checks if the {@link Chunk} at the specified coordinates is loaded and in use by one or more players
+ *
+ * @param x X-coordinate of the chunk
+ * @param z Z-coordinate of the chunk
+ * @return true if the chunk is loaded and in use by one or more players, otherwise false
+ */
+ public boolean isChunkInUse(int x, int z);
+
+ /**
* Loads the {@link Chunk} at the specified coordinates
* <p />
* If the chunk does not exist, it will be generated.