Package net.minecraft.src
Class NibbleArray
java.lang.Object
net.minecraft.src.NibbleArray
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNibbleArray(byte[] par1ArrayOfByte, int par2) NibbleArray(int par1, int par2) -
Method Summary
-
Field Details
-
data
public final byte[] dataByte array of data stored in this holder. Possibly a light map or some chunk data. Data is accessed in 4-bit pieces.
-
-
Constructor Details
-
NibbleArray
public NibbleArray(int par1, int par2) -
NibbleArray
public NibbleArray(byte[] par1ArrayOfByte, int par2)
-
-
Method Details
-
get
public int get(int par1, int par2, int par3) Returns the nibble of data corresponding to the passed in x, y, z. y is at most 6 bits, z is at most 4. -
set
public void set(int par1, int par2, int par3, int par4) Arguments are x, y, z, val. Sets the nibble of data atx << 11 | z << 7 | yto val.
-