Class PackedIntegerArray

java.lang.Object
net.minecraft.util.collection.PackedIntegerArray

public class PackedIntegerArray
extends Object
  • Field Details

    • field_24078

      private static final int[] field_24078
    • storage

      private final long[] storage
    • elementBits

      private final int elementBits
    • maxValue

      private final long maxValue
    • size

      private final int size
    • field_24079

      private final int field_24079
    • field_24080

      private final int field_24080
    • field_24081

      private final int field_24081
    • field_24082

      private final int field_24082
  • Constructor Details

    • PackedIntegerArray

      public PackedIntegerArray​(int elementBits, int size)
    • PackedIntegerArray

      public PackedIntegerArray​(int elementBits, int size, @Nullable long[] storage)
  • Method Details

    • method_27284

      private int method_27284​(int int2)
    • setAndGetOldValue

      public int setAndGetOldValue​(int index, int value)
    • set

      public void set​(int index, int value)
    • get

      public int get​(int index)
    • getStorage

      public long[] getStorage()
    • getSize

      public int getSize()
    • forEach

      public void forEach​(IntConsumer consumer)