From 2c403adf7442a419a6b5b79b441008422a9547d4 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 2 Mar 2011 20:28:49 +0000 Subject: [PATCH] Regenerate and refresh chunk methods By: Raphfrk --- paper-api/src/main/java/org/bukkit/World.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 1e967b8cbf..b465c8669b 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -200,6 +200,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} *