mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 00:52:22 -07:00
Added ChunkSnapshot for efficient, thread-safe copies of Chunk data. Thanks mikeprimm!
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user