mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add isChunkInUse() to World. Addresses BUKKIT-2330
This commit is contained in:
parent
4c766c92ac
commit
88e837ae5d
1 changed files with 9 additions and 0 deletions
|
@ -152,6 +152,15 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
||||||
*/
|
*/
|
||||||
public boolean isChunkLoaded(int x, int z);
|
public boolean isChunkLoaded(int x, int z);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the {@link Chunk} at the specified coordinates is loaded and in use by one or more players
|
||||||
|
*
|
||||||
|
* @param x X-coordinate of the chunk
|
||||||
|
* @param z Z-coordinate of the chunk
|
||||||
|
* @return true if the chunk is loaded and in use by one or more players, otherwise false
|
||||||
|
*/
|
||||||
|
public boolean isChunkInUse(int x, int z);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the {@link Chunk} at the specified coordinates
|
* Loads the {@link Chunk} at the specified coordinates
|
||||||
* <p />
|
* <p />
|
||||||
|
|
Loading…
Add table
Reference in a new issue