net.minecraft.world.chunk

## Class NibbleArray

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

-     public class NibbleArray
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `byte[]` | `data` Byte array of data stored in this holder.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NibbleArray(byte[] par1ArrayOfByte, int par2)`
    `NibbleArray(int par1, int par2)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.