Record Class ClientboundChunksBiomesPacket.ChunkBiomeData
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket.ChunkBiomeData
- Enclosing class:
ClientboundChunksBiomesPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thebufferrecord component.private final ChunkPosThe field for theposrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundChunksBiomesPacket.ChunkBiomeData> -
Constructor Summary
ConstructorsConstructorDescriptionChunkBiomeData(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.
-
Field Details
-
pos
The field for theposrecord component. -
buffer
private final byte[] bufferThe field for thebufferrecord component. -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundChunksBiomesPacket.ChunkBiomeData> STREAM_CODEC
-
-
Constructor Details
-
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
-
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
-