Record Class SerializableChunkData.SectionData
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.storage.SerializableChunkData.SectionData
- Enclosing class:
SerializableChunkData
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblockLightrecord component.private final @Nullable LevelChunkSectionThe field for thechunkSectionrecord component.The field for theskyLightrecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionData(int y, @Nullable LevelChunkSection chunkSection, @Nullable DataLayer blockLight, @Nullable DataLayer skyLight) Creates an instance of aSectionDatarecord class. -
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
-
skyLight
-
-
Constructor Details
-
SectionData
public SectionData(int y, @Nullable LevelChunkSection chunkSection, @Nullable DataLayer blockLight, @Nullable DataLayer skyLight) Creates an instance of aSectionDatarecord class.- Parameters:
y- the value for theyrecord componentchunkSection- the value for thechunkSectionrecord componentblockLight- the value for theblockLightrecord componentskyLight- the value for theskyLightrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-
skyLight
-