Record Class ClientboundChunksBiomesPacket.ChunkBiomeData
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket.ChunkBiomeData
- Enclosing class:
- ClientboundChunksBiomesPacket
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionChunkBiomeData(FriendlyByteBuf p_275255_) ChunkBiomeData(LevelChunk p_275569_) ChunkBiomeData(ChunkPos pos, byte[] buffer) Creates an instance of aChunkBiomeDatarecord class.
- 
Method SummaryModifier 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- 
posThe field for theposrecord component.
- 
bufferprivate final byte[] bufferThe field for thebufferrecord component.
 
- 
- 
Constructor Details- 
ChunkBiomeData
- 
ChunkBiomeData
- 
ChunkBiomeDataCreates an instance of aChunkBiomeDatarecord class.- Parameters:
- pos- the value for the- posrecord component
- buffer- the value for the- bufferrecord component
 
 
- 
- 
Method Details- 
calculateChunkSize
- 
getReadBuffer
- 
getWriteBufferprivate io.netty.buffer.ByteBuf getWriteBuffer()
- 
extractChunkData
- 
write
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
bufferpublic byte[] buffer()Returns the value of thebufferrecord component.- Returns:
- the value of the bufferrecord component
 
 
-