Class SimpleBitStorage

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

public class SimpleBitStorage extends Object implements BitStorage
  • Field Details Link icon

    • MAGIC Link icon

      private static final int[] MAGIC
    • data Link icon

      private final long[] data
    • bits Link icon

      private final int bits
    • mask Link icon

      private final long mask
    • size Link icon

      private final int size
    • valuesPerLong Link icon

      private final int valuesPerLong
    • divideMul Link icon

      private final int divideMul
    • divideAdd Link icon

      private final int divideAdd
    • divideShift Link icon

      private final int divideShift
  • Constructor Details Link icon

    • SimpleBitStorage Link icon

      public SimpleBitStorage(int p_198164_, int p_198165_, int[] p_198166_)
    • SimpleBitStorage Link icon

      public SimpleBitStorage(int p_184717_, int p_184718_)
    • SimpleBitStorage Link icon

      public SimpleBitStorage(int p_184724_, int p_184725_, @Nullable long[] p_184726_)
  • Method Details Link icon

    • cellIndex Link icon

      private int cellIndex(int p_184740_)
    • getAndSet Link icon

      public int getAndSet(int p_184731_, int p_184732_)
      Specified by:
      getAndSet in interface BitStorage
    • set Link icon

      public void set(int p_184742_, int p_184743_)
      Specified by:
      set in interface BitStorage
    • get Link icon

      public int get(int p_184729_)
      Specified by:
      get in interface BitStorage
    • getRaw Link icon

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

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

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

      public void getAll(IntConsumer p_184734_)
      Specified by:
      getAll in interface BitStorage
    • unpack Link icon

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

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