Class WordPackedArray

java.lang.Object
net.minecraft.util.math.WordPackedArray

public class WordPackedArray extends Object
A packed array of integers. Introduced in 20w17a to represent the old block state storage format.
Mappings:
Namespace Name
official aqe
intermediary net/minecraft/class_5298
named net/minecraft/util/math/WordPackedArray
  • Field Details

    • field_29862

      private static final int field_29862
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laqe;a:I
      intermediary field_29862 Lnet/minecraft/class_5298;field_29862:I
      named field_29862 Lnet/minecraft/util/math/WordPackedArray;field_29862:I
    • array

      private final long[] array
      Mappings:
      Namespace Name Mixin selector
      official b Laqe;b:[J
      intermediary field_24641 Lnet/minecraft/class_5298;field_24641:[J
      named array Lnet/minecraft/util/math/WordPackedArray;array:[J
    • unitSize

      private final int unitSize
      Mappings:
      Namespace Name Mixin selector
      official c Laqe;c:I
      intermediary field_24642 Lnet/minecraft/class_5298;field_24642:I
      named unitSize Lnet/minecraft/util/math/WordPackedArray;unitSize:I
    • maxValue

      private final long maxValue
      Mappings:
      Namespace Name Mixin selector
      official d Laqe;d:J
      intermediary field_24643 Lnet/minecraft/class_5298;field_24643:J
      named maxValue Lnet/minecraft/util/math/WordPackedArray;maxValue:J
    • length

      private final int length
      Mappings:
      Namespace Name Mixin selector
      official e Laqe;e:I
      intermediary field_24644 Lnet/minecraft/class_5298;field_24644:I
      named length Lnet/minecraft/util/math/WordPackedArray;length:I
  • Constructor Details

    • WordPackedArray

      public WordPackedArray(int unitSize, int length)
      Parameters:
      unitSize - the max number of bits a value can use
      length - the length of values
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqe;<init>(II)V
      intermediary <init> Lnet/minecraft/class_5298;<init>(II)V
      named <init> Lnet/minecraft/util/math/WordPackedArray;<init>(II)V
    • WordPackedArray

      public WordPackedArray(int unitSize, int length, long[] array)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqe;<init>(II[J)V
      intermediary <init> Lnet/minecraft/class_5298;<init>(II[J)V
      named <init> Lnet/minecraft/util/math/WordPackedArray;<init>(II[J)V
  • Method Details

    • set

      public void set(int index, int value)
      Mappings:
      Namespace Name Mixin selector
      official a Laqe;a(II)V
      intermediary method_28153 Lnet/minecraft/class_5298;method_28153(II)V
      named set Lnet/minecraft/util/math/WordPackedArray;set(II)V
    • get

      public int get(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Laqe;a(I)I
      intermediary method_28152 Lnet/minecraft/class_5298;method_28152(I)I
      named get Lnet/minecraft/util/math/WordPackedArray;get(I)I
    • getAlignedArray

      public long[] getAlignedArray()
      Mappings:
      Namespace Name Mixin selector
      official a Laqe;a()[J
      intermediary method_28151 Lnet/minecraft/class_5298;method_28151()[J
      named getAlignedArray Lnet/minecraft/util/math/WordPackedArray;getAlignedArray()[J
    • getUnitSize

      public int getUnitSize()
      Mappings:
      Namespace Name Mixin selector
      official b Laqe;b()I
      intermediary method_28154 Lnet/minecraft/class_5298;method_28154()I
      named getUnitSize Lnet/minecraft/util/math/WordPackedArray;getUnitSize()I