SPIGOT-3747: Add API for force loaded chunks

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2018-12-27 12:44:43 +11:00
parent 5e9fc1140e
commit 022955b377
2 changed files with 55 additions and 0 deletions

View File

@@ -130,4 +130,26 @@ public interface Chunk {
* @return true if slimes are able to spawn in this chunk
*/
boolean isSlimeChunk();
/**
* Gets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*
* @return force load status
* @see World#isChunkForceLoaded(int, int)
*/
boolean isForceLoaded();
/**
* Sets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*
* @param forced
* @see World#setChunkForceLoaded(int, int, boolean)
*/
void setForceLoaded(boolean forced);
}