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

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
Bukkit/Spigot
2011-06-07 03:22:03 -04:00
parent 516d253953
commit c6821f93c4
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();