Package net.minecraft.world.chunk
Class GridNibbleArray
java.lang.Object
net.minecraft.world.chunk.ChunkNibbleArray
net.minecraft.world.chunk.GridNibbleArray
A specialized chunk nibble array that ignores the Y parameters and only
stores the nibbles for a 16 × 16 horizontal chunk slice.
When it is converted to a byte array, it fills each Y-level of the returned array with the same nibbles it stores.
- Mappings:
Namespace Name official dgaintermediary net/minecraft/class_4298named net/minecraft/world/chunk/GridNibbleArray
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe number of array indices each Y-level uses in a chunk nibble array.Fields inherited from class net.minecraft.world.chunk.ChunkNibbleArray
bytes, BYTES_LENGTH, COPY_BLOCK_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.world.chunk.ChunkNibbleArray
bottomToString, copy, get, isUninitialized, set, toString
-
Field Details
-
INDICES_PER_Y
public static final int INDICES_PER_YThe number of array indices each Y-level uses in a chunk nibble array.- See Also:
- Mappings:
Namespace Name Mixin selector official dLdga;d:Iintermediary field_31707Lnet/minecraft/class_4298;field_31707:Inamed INDICES_PER_YLnet/minecraft/world/chunk/GridNibbleArray;INDICES_PER_Y:I
-
-
Constructor Details
-
GridNibbleArray
public GridNibbleArray() -
GridNibbleArray
- Mappings:
Namespace Name Mixin selector official <init>Ldga;<init>(Lcoc;I)Vintermediary <init>Lnet/minecraft/class_4298;<init>(Lnet/minecraft/class_2804;I)Vnamed <init>Lnet/minecraft/world/chunk/GridNibbleArray;<init>(Lnet/minecraft/world/chunk/ChunkNibbleArray;I)V
-
-
Method Details
-
getIndex
protected int getIndex(int x, int y, int z) - Overrides:
getIndexin classChunkNibbleArray- Mappings:
Namespace Name Mixin selector official bLcoc;b(III)Iintermediary method_12140Lnet/minecraft/class_2804;method_12140(III)Inamed getIndexLnet/minecraft/world/chunk/ChunkNibbleArray;getIndex(III)I
-
asByteArray
public byte[] asByteArray()- Overrides:
asByteArrayin classChunkNibbleArray- Mappings:
Namespace Name Mixin selector official aLcoc;a()[Bintermediary method_12137Lnet/minecraft/class_2804;method_12137()[Bnamed asByteArrayLnet/minecraft/world/chunk/ChunkNibbleArray;asByteArray()[B
-