Interface ChunkState
-
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(ChunkStates.class) public interface ChunkState extends DefaultedRegistryValue
Represents the state of aChunk
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
isAfter
boolean isAfter(ChunkState state)
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
-
-