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 aChunkBiomeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintchunkX()Returns the value of thechunkXrecord component.intchunkZ()Returns the value of thechunkZrecord component.byte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()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 aChunkBiomeDatarecord class.- Parameters:
chunkX- the value for thechunkXrecord componentchunkZ- the value for thechunkZrecord componentdata- the value for thedatarecord 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. -
chunkX
public int chunkX()Returns the value of thechunkXrecord component.- Returns:
- the value of the
chunkXrecord component
-
chunkZ
public int chunkZ()Returns the value of thechunkZrecord component.- Returns:
- the value of the
chunkZrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-