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, ChunkSection chunkSection, ChunkNibbleArray blockLight, ChunkNibbleArray skyLight) extends Record
Mappings:
Namespace Name
named net/minecraft/world/chunk/SerializedChunk$SectionData
intermediary net/minecraft/class_2852$class_9898
official equ$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

  • Constructor Details

    • SectionData

      public SectionData(int y, @Nullable ChunkSection chunkSection, @Nullable ChunkNibbleArray blockLight, @Nullable ChunkNibbleArray skyLight)
      Creates an instance of a SectionData record class.
      Parameters:
      y - the value for the y record component
      chunkSection - the value for the chunkSection record component
      blockLight - the value for the blockLight record component
      skyLight - the value for the skyLight record component
  • Method Details

    • toString

      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

      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

      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

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

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

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

      public @Nullable ChunkNibbleArray skyLight()
      Returns the value of the skyLight record component.
      Returns:
      the value of the skyLight record component