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 official aqc
intermediary net/minecraft/class_5298
named net/minecraft/util/math/WordPackedArray
-
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 official a
Laqc;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
Laqc;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
Laqc;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
Laqc;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
Laqc;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 uselength
- the length of values- Mappings:
Namespace Name Mixin selector official <init>
Laqc;<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>
Laqc;<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
Laqc;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
Laqc;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
Laqc;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
Laqc;b()I
intermediary method_28154
Lnet/minecraft/class_5298;method_28154()I
named getUnitSize
Lnet/minecraft/util/math/WordPackedArray;getUnitSize()I
-