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 - 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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionSectionData(int int2, @Nullable ChunkSection chunkSection, @Nullable ChunkNibbleArray chunkNibbleArray, @Nullable ChunkNibbleArray chunkNibbleArray2) 
- 
Method SummaryModifier 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- 
yprivate final int yThe field for theyrecord component.
- 
chunkSectionThe field for thechunkSectionrecord component.
- 
blockLightThe field for theblockLightrecord component.
- 
skyLightThe field for theskyLightrecord component.
 
- 
- 
Constructor Details- 
SectionDatapublic SectionData(int int2, @Nullable @Nullable ChunkSection chunkSection, @Nullable @Nullable ChunkNibbleArray chunkNibbleArray, @Nullable @Nullable ChunkNibbleArray chunkNibbleArray2) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
ypublic int y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
chunkSectionReturns the value of thechunkSectionrecord component.- Returns:
- the value of the chunkSectionrecord component
 
- 
blockLightReturns the value of theblockLightrecord component.- Returns:
- the value of the blockLightrecord component
 
- 
skyLightReturns the value of theskyLightrecord component.- Returns:
- the value of the skyLightrecord component
 
 
-