Record Class ClientboundChunksBiomesPacket.ChunkBiomeData
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket.ChunkBiomeData
- Enclosing class:
ClientboundChunksBiomesPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunkBiomeData(FriendlyByteBuf input) ChunkBiomeData(LevelChunk chunk) ChunkBiomeData(ChunkPos pos, byte[] buffer) Creates an instance of aChunkBiomeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]buffer()Returns the value of thebufferrecord component.private static intcalculateChunkSize(LevelChunk chunk) final booleanIndicates whether some other object is "equal to" this one.static voidextractChunkData(FriendlyByteBuf buffer, LevelChunk chunk) private io.netty.buffer.ByteBuffinal inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf output)
-
Field Details
-
pos
The field for theposrecord component. -
buffer
private final byte[] bufferThe field for thebufferrecord component.
-
-
Constructor Details
-
ChunkBiomeData
-
ChunkBiomeData
-
ChunkBiomeData
Creates an instance of aChunkBiomeDatarecord class.- Parameters:
pos- the value for theposrecord componentbuffer- the value for thebufferrecord component
-
-
Method Details
-
calculateChunkSize
-
getReadBuffer
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
extractChunkData
-
write
-
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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
buffer
public byte[] buffer()Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-