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$SectionDataintermediary net/minecraft/class_2852$class_9898official efi$bnamed yintermediary comp_2963official anamed chunkSectionintermediary comp_2964official bnamed blockLightintermediary comp_2965official cnamed skyLightintermediary comp_2966official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ChunkNibbleArrayThe field for theblockLightrecord component.private final @Nullable ChunkSectionThe field for thechunkSectionrecord component.private final @Nullable ChunkNibbleArrayThe field for theskyLightrecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionData(int int2, @Nullable ChunkSection chunkSection, @Nullable ChunkNibbleArray chunkNibbleArray, @Nullable ChunkNibbleArray chunkNibbleArray2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockLightrecord component.Returns the value of thechunkSectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.skyLight()Returns the value of theskyLightrecord component.final StringtoString()Returns a string representation of this record class.inty()Returns the value of theyrecord component.
-
Field Details
-
y
private final int yThe field for theyrecord component. -
chunkSection
The field for thechunkSectionrecord component. -
blockLight
The field for theblockLightrecord component. -
skyLight
The field for theskyLightrecord 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 theyrecord component.- Returns:
- the value of the
yrecord component
-
chunkSection
Returns the value of thechunkSectionrecord component.- Returns:
- the value of the
chunkSectionrecord component
-
blockLight
Returns the value of theblockLightrecord component.- Returns:
- the value of the
blockLightrecord component
-
skyLight
Returns the value of theskyLightrecord component.- Returns:
- the value of the
skyLightrecord component
-