From 88e837ae5d4ea501e9a43ee016f450ce6e178d2e Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 12 Aug 2012 18:21:04 -0500 Subject: Add isChunkInUse() to World. Addresses BUKKIT-2330 --- src/main/java/org/bukkit/World.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -152,6 +152,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 *

-- cgit v1.2.3