Added various utility methods to make chunk handling easier. Thanks Meaglin!
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user