Package com.rvandoosselaer.blocks
Interface ChunkRepository
- All Known Implementing Classes:
FileRepository
public interface ChunkRepository
The contract of a ChunkRepository implementation.
-
Method Summary
-
Method Details
-
load
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
Saves the chunk- Parameters:
chunk
- to save- Returns:
- true when successfully saved, false otherwise
-