summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Primm <mike@primmhome.com>2012-08-12 18:21:04 -0500
committerEvilSeph <evilseph@gmail.com>2012-08-19 07:56:39 -0400
commit88e837ae5d4ea501e9a43ee016f450ce6e178d2e (patch)
tree2dbbef5eef89d9c90765064dcb577c6130c5b994
parent4c766c92ac4d10daeedee256e096106570d0e9b9 (diff)
downloadbukkit-88e837ae5d4ea501e9a43ee016f450ce6e178d2e.tar
bukkit-88e837ae5d4ea501e9a43ee016f450ce6e178d2e.tar.gz
bukkit-88e837ae5d4ea501e9a43ee016f450ce6e178d2e.tar.lz
bukkit-88e837ae5d4ea501e9a43ee016f450ce6e178d2e.tar.xz
bukkit-88e837ae5d4ea501e9a43ee016f450ce6e178d2e.zip
Add isChunkInUse() to World. Addresses BUKKIT-2330
-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.