Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraft.world.chunk
Class NibbleArray

    java.lang.Object
      net.minecraft.world.chunk.NibbleArray

    public class NibbleArray

extends Object

Field Summary
`byte[]` | `data` Byte array of data stored in this holder.

Constructor Summary
`NibbleArray(byte[] par1ArrayOfByte, int par2)`
`NibbleArray(int par1, int par2)`

Method Summary
`int` | `get(int par1, int par2, int par3)` Returns the nibble of data corresponding to the passed in x, y, z.
`void` | `set(int par1, int par2, int par3, int par4)` Arguments are x, y, z, val.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### data

    public final byte[] data

  Byte array of data stored in this holder. Possibly a light map or some chunk data. Data is accessed in 4-bit pieces.

Constructor Detail

### NibbleArray

    public NibbleArray(int par1,
                       int par2)

### NibbleArray

    public NibbleArray(byte[] par1ArrayOfByte,
                       int par2)

Method Detail

### 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 at x << 11 | z << 7 | y to val.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD