Added ChunkSnapshot for efficient, thread-safe copies of Chunk data. Thanks mikeprimm!

This commit is contained in:
EvilSeph
2011-06-07 03:22:03 -04:00
parent 826bcf1d4a
commit 58bd5d063d
2 changed files with 90 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ public interface Chunk {
*/
Block getBlock(int x, int y, int z);
/**
* Capture thread-safe read-only snapshot of chunk data
* @return ChunkSnapshot
*/
ChunkSnapshot getChunkSnapshot();
Entity[] getEntities();
BlockState[] getTileEntities();