Record Class Section
java.lang.Object
java.lang.Record
net.minestom.server.instance.Section
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomePaletterecord component.Returns the value of theblockLightrecord component.Returns the value of theblockPaletterecord component.voidclear()clone()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidvoidsetBlockLight(byte[] copyArray) voidsetSkyLight(byte[] copyArray) skyLight()Returns the value of theskyLightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
-
Section
public Section() -
Section
Creates an instance of aSectionrecord class.- Parameters:
blockPalette- the value for theblockPaletterecord componentbiomePalette- the value for thebiomePaletterecord componentskyLight- the value for theskyLightrecord componentblockLight- the value for theblockLightrecord component
-
-
Method Details
-
clear
public void clear() -
invalidate
public void invalidate() -
clone
-
setSkyLight
public void setSkyLight(byte[] copyArray) -
setBlockLight
public void setBlockLight(byte[] copyArray) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
blockPalette
Returns the value of theblockPaletterecord component.- Returns:
- the value of the
blockPaletterecord component
-
biomePalette
Returns the value of thebiomePaletterecord component.- Returns:
- the value of the
biomePaletterecord component
-
skyLight
Returns the value of theskyLightrecord component.- Returns:
- the value of the
skyLightrecord component
-
blockLight
Returns the value of theblockLightrecord component.- Returns:
- the value of the
blockLightrecord component
-