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