Module net.minestom.server
Record Class ChunkBiomesPacket.ChunkBiomeData
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.ChunkBiomesPacket.ChunkBiomeData
- Enclosing class:
ChunkBiomesPacket
public static record ChunkBiomesPacket.ChunkBiomeData(int chunkX, int chunkZ, byte[] data)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type
<ChunkBiomesPacket.ChunkBiomeData> -
Constructor Summary
ConstructorsConstructorDescriptionChunkBiomeData
(int chunkX, int chunkZ, byte[] data) Creates an instance of aChunkBiomeData
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
chunkX()
Returns the value of thechunkX
record component.int
chunkZ()
Returns the value of thechunkZ
record component.byte[]
data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ChunkBiomeData
public ChunkBiomeData(int chunkX, int chunkZ, byte[] data) Creates an instance of aChunkBiomeData
record class.- Parameters:
chunkX
- the value for thechunkX
record componentchunkZ
- the value for thechunkZ
record componentdata
- the value for thedata
record component
-
-
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 '=='. -
chunkX
public int chunkX()Returns the value of thechunkX
record component.- Returns:
- the value of the
chunkX
record component
-
chunkZ
public int chunkZ()Returns the value of thechunkZ
record component.- Returns:
- the value of the
chunkZ
record component
-
data
public byte[] data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-