Package net.minecraft.world.chunk
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 ebk$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 Summary
Modifier and TypeFieldDescriptionprivate final @Nullable ChunkNibbleArray
The field for theblockLight
record component.private final @Nullable ChunkSection
The field for thechunkSection
record component.private final @Nullable ChunkNibbleArray
The field for theskyLight
record component.private final int
The field for they
record component. -
Constructor Summary
ConstructorDescriptionSectionData
(int int2, @Nullable ChunkSection chunkSection, @Nullable ChunkNibbleArray chunkNibbleArray, @Nullable ChunkNibbleArray chunkNibbleArray2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockLight
record component.Returns the value of thechunkSection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.skyLight()
Returns the value of theskyLight
record component.final String
toString()
Returns a string representation of this record class.int
y()
Returns the value of they
record component.
-
Field Details
-
y
private final int yThe field for they
record component. -
chunkSection
The field for thechunkSection
record component. -
blockLight
The field for theblockLight
record component. -
skyLight
The field for theskyLight
record component.
-
-
Constructor Details
-
SectionData
public SectionData(int int2, @Nullable @Nullable ChunkSection chunkSection, @Nullable @Nullable ChunkNibbleArray chunkNibbleArray, @Nullable @Nullable ChunkNibbleArray chunkNibbleArray2)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
chunkSection
Returns the value of thechunkSection
record component.- Returns:
- the value of the
chunkSection
record component
-
blockLight
Returns the value of theblockLight
record component.- Returns:
- the value of the
blockLight
record component
-
skyLight
Returns the value of theskyLight
record component.- Returns:
- the value of the
skyLight
record component
-