public class NibbleArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
data |
Constructor and Description |
---|
NibbleArray() |
NibbleArray(byte[] storageArray) |
Modifier and Type | Method and Description |
---|---|
int |
get(int x,
int y,
int z) |
private int |
getCoordinateIndex(int x,
int y,
int z) |
byte[] |
getData() |
int |
getFromIndex(int index) |
private int |
getNibbleIndex(int index) |
private boolean |
isLowerNibble(int index) |
void |
set(int x,
int y,
int z,
int value) |
void |
setIndex(int index,
int value) |
public NibbleArray()
public NibbleArray(byte[] storageArray)
public int get(int x, int y, int z)
public void set(int x, int y, int z, int value)
private int getCoordinateIndex(int x, int y, int z)
public int getFromIndex(int index)
public void setIndex(int index, int value)
private boolean isLowerNibble(int index)
private int getNibbleIndex(int index)
public byte[] getData()