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 WorldChunks already existing and loaded in aWorld
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAfter(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 theChunkproviding this state is considered "usable" for consumers ofChunks with a specificChunkStaterange.- Parameters:
state- The chunk state- Returns:
- True if this state is after the provided state
-