Record Class ClientboundChunksBiomesPacket.ChunkBiomeData
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket.ChunkBiomeData
- Enclosing class:
- ClientboundChunksBiomesPacket
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChunkBiomeData
(FriendlyByteBuf p_275255_) ChunkBiomeData
(LevelChunk p_275569_) ChunkBiomeData
(ChunkPos pos, byte[] buffer) Creates an instance of aChunkBiomeData
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
buffer()
Returns the value of thebuffer
record component.private static int
calculateChunkSize
(LevelChunk p_275324_) final boolean
Indicates whether some other object is "equal to" this one.static void
extractChunkData
(FriendlyByteBuf p_275626_, LevelChunk p_275570_) private io.netty.buffer.ByteBuf
final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_275467_)
-
Field Details
-
pos
The field for thepos
record component. -
buffer
private final byte[] bufferThe field for thebuffer
record component.
-
-
Constructor Details
-
ChunkBiomeData
-
ChunkBiomeData
-
ChunkBiomeData
Creates an instance of aChunkBiomeData
record class.- Parameters:
pos
- the value for thepos
record componentbuffer
- the value for thebuffer
record component
-
-
Method Details
-
calculateChunkSize
-
getReadBuffer
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
extractChunkData
-
write
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
buffer
public byte[] buffer()Returns the value of thebuffer
record component.- Returns:
- the value of the
buffer
record component
-