Interface ChunkRepository

All Known Implementing Classes:
FileRepository

public interface ChunkRepository
The contract of a ChunkRepository implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(com.simsilica.mathd.Vec3i location)
    Loads the chunk for the given chunk location.
    boolean
    save(Chunk chunk)
    Saves the chunk
  • Method Details

    • load

      Chunk load(com.simsilica.mathd.Vec3i location)
      Loads the chunk for the given chunk location.
      Parameters:
      location - of the chunk
      Returns:
      chunk or null if the chunk could not be loaded
    • save

      boolean save(Chunk chunk)
      Saves the chunk
      Parameters:
      chunk - to save
      Returns:
      true when successfully saved, false otherwise