Package com.rvandoosselaer.blocks
Interface ChunkRepository
-
- All Known Implementing Classes:
FileRepository
public interface ChunkRepository
The contract of a ChunkRepository implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Chunk
load(com.simsilica.mathd.Vec3i location)
Loads the chunk for the given chunk location.boolean
save(Chunk chunk)
Saves the chunk
-
-
-
Method Detail
-
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
-
-