Class NibbleArray

java.lang.Object
net.minecraft.src.NibbleArray

public class NibbleArray extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final byte[]
    Byte array of data stored in this holder.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NibbleArray(byte[] par1ArrayOfByte, int par2)
     
    NibbleArray(int par1, int par2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    void
    set(int par1, int par2, int par3, int par4)
    Arguments are x, y, z, val.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

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