Added various utility methods to make chunk handling easier. Thanks Meaglin!

This commit is contained in:
EvilSeph
2011-07-28 00:32:28 -04:00
parent 1f5c90052a
commit 7b2e455b25
2 changed files with 56 additions and 0 deletions

View File

@@ -171,6 +171,16 @@ public interface World {
*/
public boolean loadChunk(int x, int z, boolean generate);
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
*
* This method is analogous to {@link #unloadChunk(int, int, boolean, boolean)} where safe and saveis true
*
* @param chunk the chunk to unload
* @return true if the chunk has unloaded successfully, otherwise false
*/
public boolean unloadChunk(Chunk chunk);
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
*