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 p_275255_) ChunkBiomeData(LevelChunk p_275569_) 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 p_275324_) final booleanIndicates whether some other object is "equal to" this one.static voidextractChunkData(FriendlyByteBuf p_275626_, LevelChunk p_275570_) 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 p_275467_)
-
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
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 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
-