Class BitStorage

java.lang.Object
net.minecraft.util.BitStorage

public class BitStorage extends Object
  • Field Details

    • MAGIC

      private static final int[] MAGIC
    • data

      private final long[] data
    • bits

      private final int bits
    • mask

      private final long mask
    • size

      private final int size
    • valuesPerLong

      private final int valuesPerLong
    • divideMul

      private final int divideMul
    • divideAdd

      private final int divideAdd
    • divideShift

      private final int divideShift
  • Constructor Details

    • BitStorage

      public BitStorage(int p_13507_, int p_13508_)
    • BitStorage

      public BitStorage(int p_13510_, int p_13511_, @Nullable long[] p_13512_)
  • Method Details

    • cellIndex

      private int cellIndex(int p_13523_)
    • getAndSet

      public int getAndSet(int p_13517_, int p_13518_)
    • set

      public void set(int p_13525_, int p_13526_)
    • get

      public int get(int p_13515_)
    • getRaw

      public long[] getRaw()
    • getSize

      public int getSize()
    • getBits

      public int getBits()
    • getAll

      public void getAll(IntConsumer p_13520_)