Package net.minecraft.util.math
Class WordPackedArray
java.lang.Object
net.minecraft.util.math.WordPackedArray
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 azz
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long[]
private static final int
private final int
private final long
private final int
-
Constructor Summary
ConstructorDescriptionWordPackedArray
(int unitSize, int length) WordPackedArray
(int unitSize, int length, long[] array) -
Method Summary
-
Field Details
-
field_29862
private static final int field_29862- See Also:
- Mappings:
Namespace Name Mixin selector named field_29862
Lnet/minecraft/util/math/WordPackedArray;field_29862:I
intermediary field_29862
Lnet/minecraft/class_5298;field_29862:I
official a
Lazz;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
Lazz;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
Lazz;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
Lazz;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
Lazz;e:I
-
-
Constructor Details
-
WordPackedArray
public WordPackedArray(int unitSize, int length) - Parameters:
unitSize
- the max number of bits a value can uselength
- 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>
Lazz;<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>
Lazz;<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
Lazz;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
Lazz;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
Lazz;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
Lazz;b()I
-