Interface ChunkState

All Superinterfaces:

@CatalogedBy(ChunkStates.class) public interface ChunkState extends 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 a World
  • Method Details

    • isAfter

      boolean isAfter(ChunkState state)
      Checks whether this state is considered "after" the provided ChunkState. Usually used as a check for whether the Chunk providing this state is considered "usable" for consumers of Chunks with a specific ChunkState range.
      state - The chunk state
      True if this state is after the provided state