Record Class ChunkData.Section
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.data.ChunkData.Section
- Enclosing class:
ChunkData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.shortReturns the value of theblockCountrecord component.Returns the value of theblockStatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.shortReturns the value of theliquidCountrecord component.static NetworkBuffer.Type<ChunkData.Section> networkType(int biomeCount) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
Creates an instance of aSectionrecord class.- Parameters:
blockCount- the value for theblockCountrecord componentliquidCount- the value for theliquidCountrecord componentblockStates- the value for theblockStatesrecord componentbiomes- the value for thebiomesrecord component
-
-
Method Details
-
networkType
-
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. -
blockCount
public short blockCount()Returns the value of theblockCountrecord component.- Returns:
- the value of the
blockCountrecord component
-
liquidCount
public short liquidCount()Returns the value of theliquidCountrecord component.- Returns:
- the value of the
liquidCountrecord component
-
blockStates
Returns the value of theblockStatesrecord component.- Returns:
- the value of the
blockStatesrecord component
-
biomes
Returns the value of thebiomesrecord component.- Returns:
- the value of the
biomesrecord component
-