public class BigChunk
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
WIDTH
The width in chunks.
|
int |
x
The BigChunk x coordinate.
|
int |
z
The BigChunk z coordinate.
|
Constructor and Description |
---|
BigChunk(ChunkLocation location)
Construct a BigChunk from a
ChunkLocation . |
BigChunk(int x,
int z)
Construct a BigChunk from BigChunk coordinates.
|
Modifier and Type | Method and Description |
---|---|
ChunkData[] |
getData()
Get the
ChunkData . |
void |
set(ChunkLocation location,
ChunkData data)
Set the
ChunkData for the ChunkLocation . |
public static final int WIDTH
public final int x
public final int z
public BigChunk(ChunkLocation location)
ChunkLocation
.location
- Cannot be null.public BigChunk(int x, int z)
x
- Should be equivalent to chunk coord / 16.z
- Should be equivalent to chunk coord / 16.public void set(ChunkLocation location, ChunkData data)
ChunkData
for the ChunkLocation
.location
- Cannot be null.data
- Cannot be null.