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
named net/minecraft/util/math/WordPackedArray
intermediary net/minecraft/class_5298
official bbw
  • Field Details

    • BIT_TO_LONG_INDEX_SHIFT

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

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

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

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

      private final int length
      Mappings:
      Namespace Name Mixin selector
      named length Lnet/minecraft/util/math/WordPackedArray;length:I
      intermediary field_24644 Lnet/minecraft/class_5298;field_24644:I
      official e Lbbw;e: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
      named <init> Lnet/minecraft/util/math/WordPackedArray;<init>(II)V
      intermediary <init> Lnet/minecraft/class_5298;<init>(II)V
      official <init> Lbbw;<init>(II)V
    • WordPackedArray

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

    • set

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

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

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

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