final class ClientChunkProvider.ChunkArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
centerX |
private int |
centerZ |
private java.util.concurrent.atomic.AtomicReferenceArray<Chunk> |
chunks |
private int |
loaded |
private int |
sideLength |
private int |
viewDistance |
Modifier | Constructor and Description |
---|---|
private |
ChunkArray(int viewDistanceIn) |
Modifier and Type | Method and Description |
---|---|
protected Chunk |
get(int chunkIndex) |
private int |
getIndex(int x,
int z) |
private boolean |
inView(int x,
int z) |
protected void |
replace(int chunkIndex,
Chunk chunkIn) |
protected Chunk |
unload(int chunkIndex,
Chunk chunkIn,
Chunk replaceWith) |
private final java.util.concurrent.atomic.AtomicReferenceArray<Chunk> chunks
private final int viewDistance
private final int sideLength
private volatile int centerX
private volatile int centerZ
private int loaded