mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
#846: Add method to get chunk load level
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
parent
71089b4713
commit
1087e895bb
1 changed files with 36 additions and 0 deletions
|
@ -253,4 +253,40 @@ public interface Chunk extends PersistentDataHolder {
|
|||
* @return if the biome is contained within
|
||||
*/
|
||||
boolean contains(@NotNull Biome biome);
|
||||
|
||||
/**
|
||||
* Gets the load level of this chunk, which determines what game logic is
|
||||
* processed.
|
||||
*
|
||||
* @return the load level
|
||||
*/
|
||||
@NotNull
|
||||
LoadLevel getLoadLevel();
|
||||
|
||||
/**
|
||||
* An enum to specify the load level of a chunk.
|
||||
*/
|
||||
public enum LoadLevel {
|
||||
|
||||
/**
|
||||
* No game logic is processed, world generation may still occur.
|
||||
*/
|
||||
INACCESSIBLE,
|
||||
/**
|
||||
* Most game logic is not processed, including entities and redstone.
|
||||
*/
|
||||
BORDER,
|
||||
/**
|
||||
* All game logic except entities is processed.
|
||||
*/
|
||||
TICKING,
|
||||
/**
|
||||
* All game logic is processed.
|
||||
*/
|
||||
ENTITY_TICKING,
|
||||
/**
|
||||
* This chunk is not loaded.
|
||||
*/
|
||||
UNLOADED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue