#832: Allow getting chunks without generating them and optimize chunk data request for ungenerated chunks
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -164,6 +164,17 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
||||
@NotNull
|
||||
public Chunk getChunkAt(int x, int z);
|
||||
|
||||
/**
|
||||
* Gets the {@link Chunk} at the given coordinates
|
||||
*
|
||||
* @param x X-coordinate of the chunk
|
||||
* @param z Z-coordinate of the chunk
|
||||
* @param generate Whether the chunk should be fully generated or not
|
||||
* @return Chunk at the given coordinates
|
||||
*/
|
||||
@NotNull
|
||||
public Chunk getChunkAt(int x, int z, boolean generate);
|
||||
|
||||
/**
|
||||
* Gets the {@link Chunk} at the given {@link Location}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user