Interface ChunkState
- All Superinterfaces:
DefaultedRegistryValue
Represents the state of a
Chunk
that can exist
through various stages of the game, including but not limited to:
- Chunk in the process of being generated
- Chunk being deserialized from storage and being prepared for addition to a
World
WorldChunk
s already existing and loaded in aWorld
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAfter
(ChunkState state) Checks whether this state is considered "after" the providedChunkState
.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
isAfter
Checks whether this state is considered "after" the providedChunkState
. Usually used as a check for whether theChunk
providing this state is considered "usable" for consumers ofChunk
s with a specificChunkState
range.- Parameters:
state
- The chunk state- Returns:
- True if this state is after the provided state
-