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 azs
-
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
Lazs;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
Lazs;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
Lazs;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
Lazs;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
Lazs;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>
Lazs;<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>
Lazs;<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
Lazs;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
Lazs;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
Lazs;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
Lazs;b()I
-