Class ZeroBitStorage

java.lang.Object
net.minecraft.util.ZeroBitStorage
All Implemented Interfaces:
BitStorage

public class ZeroBitStorage extends Object implements BitStorage
  • Field Details

    • RAW

      public static final long[] RAW
    • size

      private final int size
  • Constructor Details

    • ZeroBitStorage

      public ZeroBitStorage(int pSize)
  • Method Details

    • getAndSet

      public int getAndSet(int pIndex, int pValue)
      Specified by:
      getAndSet in interface BitStorage
    • set

      public void set(int pIndex, int pValue)
      Sets the entry at the given location to the given value
      Specified by:
      set in interface BitStorage
    • get

      public int get(int pIndex)
      Gets the entry at the given index
      Specified by:
      get in interface BitStorage
    • getRaw

      public long[] getRaw()
      Specified by:
      getRaw in interface BitStorage
    • getSize

      public int getSize()
      Specified by:
      getSize in interface BitStorage
    • getBits

      public int getBits()
      Specified by:
      getBits in interface BitStorage
    • getAll

      public void getAll(IntConsumer pConsumer)
      Specified by:
      getAll in interface BitStorage
    • unpack

      public void unpack(int[] pArray)
      Specified by:
      unpack in interface BitStorage
    • copy

      public BitStorage copy()
      Specified by:
      copy in interface BitStorage