Regenerate and refresh chunk methods

This commit is contained in:
Raphfrk 2011-03-02 20:28:49 +00:00 committed by Dinnerbone
parent ac7c369966
commit 0967fd031c

View File

@ -200,6 +200,24 @@ public interface World {
*/ */
public boolean unloadChunkRequest(int x, int z, boolean safe); 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} * Drops an item at the specified {@link Location}
* *