Record Class SerializedChunk.SectionData

java.lang.Object
java.lang.Record
net.minecraft.world.chunk.SerializedChunk.SectionData
Record Components:
y -
chunkSection -
blockLight -
skyLight -
Enclosing class:
SerializedChunk

public static record SerializedChunk.SectionData(int y, @Nullable ChunkSection chunkSection, @Nullable ChunkNibbleArray blockLight, @Nullable ChunkNibbleArray skyLight) extends Record
Mappings:
Namespace Name
named net/minecraft/world/chunk/SerializedChunk$SectionData
intermediary net/minecraft/class_2852$class_9898
official eao$b
named y
intermediary comp_2963
official a
named chunkSection
intermediary comp_2964
official b
named blockLight
intermediary comp_2965
official c
named skyLight
intermediary comp_2966
official d
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • toString Link icon

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • y Link icon

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • chunkSection Link icon

      @Nullable public @Nullable ChunkSection chunkSection()
      Returns the value of the chunkSection record component.
      Returns:
      the value of the chunkSection record component
    • blockLight Link icon

      @Nullable public @Nullable ChunkNibbleArray blockLight()
      Returns the value of the blockLight record component.
      Returns:
      the value of the blockLight record component
    • skyLight Link icon

      Returns the value of the skyLight record component.
      Returns:
      the value of the skyLight record component