summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaphfrk <raphfrk@gmail.com>2011-03-02 20:28:49 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-07 12:34:35 +0000
commit0967fd031cc62437299bbebafbf06184c6cbc64e (patch)
treeee670865c92d277c479a244567e99398b2f70872 /src
parentac7c3699664ac9967db4130c3c706bb7a4aa9cd3 (diff)
downloadbukkit-0967fd031cc62437299bbebafbf06184c6cbc64e.tar
bukkit-0967fd031cc62437299bbebafbf06184c6cbc64e.tar.gz
bukkit-0967fd031cc62437299bbebafbf06184c6cbc64e.tar.lz
bukkit-0967fd031cc62437299bbebafbf06184c6cbc64e.tar.xz
bukkit-0967fd031cc62437299bbebafbf06184c6cbc64e.zip
Regenerate and refresh chunk methods
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/World.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 1e967b8c..b465c866 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -201,6 +201,24 @@ public interface World {
public boolean unloadChunkRequest(int x, int z, boolean safe);
/**
+ * Regenerates the {@link Chunk} at the specified coordinates
+ *
+ * @param x X-coordinate of the chunk
+ * @param z Z-coordinate of the chunk
+ * @return Whether the chunk was actually regenerated
+ */
+ public boolean regenerateChunk(int x, int z);
+
+ /**
+ * Resends the {@link Chunk} to all clients
+ *
+ * @param x X-coordinate of the chunk
+ * @param z Z-coordinate of the chunk
+ * @return Whether the chunk was actually refreshed
+ */
+ public boolean refreshChunk(int x, int z);
+
+ /**
* Drops an item at the specified {@link Location}
*
* @param location Location to drop the item