public class ChunkNibbleArray extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
byteArray |
Modifier | Constructor and Description |
---|---|
|
ChunkNibbleArray() |
|
ChunkNibbleArray(byte[] byte2) |
protected |
ChunkNibbleArray(int int2) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asByteArray() |
ChunkNibbleArray |
copy() |
private int |
divideByTwo(int n) |
private int |
get(int int2) |
int |
get(int x,
int y,
int z) |
protected int |
getIndex(int x,
int y,
int z) |
private boolean |
isEven(int n) |
boolean |
isUninitialized() |
private void |
set(int index,
int value) |
void |
set(int x,
int y,
int z,
int value) |
String |
toString() |
@Nullable protected byte[] byteArray
public ChunkNibbleArray()
public ChunkNibbleArray(byte[] byte2)
protected ChunkNibbleArray(int int2)
public int get(int x, int y, int z)
public void set(int x, int y, int z, int value)
protected int getIndex(int x, int y, int z)
private int get(int int2)
private void set(int index, int value)
private boolean isEven(int n)
private int divideByTwo(int n)
public byte[] asByteArray()
public ChunkNibbleArray copy()
public boolean isUninitialized()