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

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-07-28 00:32:28 -04:00
parent 68a6f96ea6
commit 26707ee929
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
*