Class GridNibbleArray

java.lang.Object
net.minecraft.world.chunk.ChunkNibbleArray
net.minecraft.world.chunk.GridNibbleArray

public class GridNibbleArray extends ChunkNibbleArray
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 dga
intermediary net/minecraft/class_4298
named net/minecraft/world/chunk/GridNibbleArray
  • Field Details

    • INDICES_PER_Y

      public static final int INDICES_PER_Y
      The number of array indices each Y-level uses in a chunk nibble array.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldga;d:I
      intermediary field_31707 Lnet/minecraft/class_4298;field_31707:I
      named INDICES_PER_Y Lnet/minecraft/world/chunk/GridNibbleArray;INDICES_PER_Y:I
  • Constructor Details

    • GridNibbleArray

      public GridNibbleArray()
    • GridNibbleArray

      public GridNibbleArray(ChunkNibbleArray array, int y)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldga;<init>(Lcoc;I)V
      intermediary <init> Lnet/minecraft/class_4298;<init>(Lnet/minecraft/class_2804;I)V
      named <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:
      getIndex in class ChunkNibbleArray
      Mappings:
      Namespace Name Mixin selector
      official b Lcoc;b(III)I
      intermediary method_12140 Lnet/minecraft/class_2804;method_12140(III)I
      named getIndex Lnet/minecraft/world/chunk/ChunkNibbleArray;getIndex(III)I
    • asByteArray

      public byte[] asByteArray()
      Overrides:
      asByteArray in class ChunkNibbleArray
      Mappings:
      Namespace Name Mixin selector
      official a Lcoc;a()[B
      intermediary method_12137 Lnet/minecraft/class_2804;method_12137()[B
      named asByteArray Lnet/minecraft/world/chunk/ChunkNibbleArray;asByteArray()[B