Package dev.booky.betterview.api
Enum Class ChunkLifecycle
- All Implemented Interfaces:
Serializable,Comparable<ChunkLifecycle>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player knows about this chunk as BetterVie has sent it to them.The chunk is currently in the process of being loaded by BetterView off-thread (e.g.The player knows about this chunk as the server has sent it to them.Means the player doesn't know about this chunk as neither BetterView nor the server has sent it to them. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLoaded()booleanisOwned()static ChunkLifecycleReturns the enum constant of this class with the specified name.static ChunkLifecycle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNLOADED
Means the player doesn't know about this chunk as neither BetterView nor the server has sent it to them. -
SERVER_LOADED
The player knows about this chunk as the server has sent it to them. -
BV_QUEUED
The chunk is currently in the process of being loaded by BetterView off-thread (e.g. currently being generated or read from disk). -
BV_LOADED
The player knows about this chunk as BetterVie has sent it to them.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isLoaded
public boolean isLoaded()- Returns:
- whether the player has received this chunk.
-
isOwned
public boolean isOwned()- Returns:
- whether this chunk is currently solely managed by BetterView.
-