Record Class ClientboundChunksBiomesPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
public record ClientboundChunksBiomesPacket(List<ClientboundChunksBiomesPacket.ChunkBiomeData> chunkBiomeData)
extends Record
implements Packet<ClientGamePacketListener>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ClientboundChunksBiomesPacket.ChunkBiomeData>The field for thechunkBiomeDatarecord component.private static final int
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aClientboundChunksBiomesPacketrecord class.ClientboundChunksBiomesPacket(FriendlyByteBuf p_275221_) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thechunkBiomeDatarecord component.final booleanIndicates whether some other object is "equal to" this one.forChunks(List<LevelChunk> p_275394_) voidhandle(ClientGamePacketListener p_275524_) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_275376_) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
chunkBiomeDataThe field for thechunkBiomeDatarecord component.
- 
TWO_MEGABYTESprivate static final int TWO_MEGABYTES- See Also:
 
 
- 
- 
Constructor Details- 
ClientboundChunksBiomesPacket
- 
ClientboundChunksBiomesPacketpublic ClientboundChunksBiomesPacket(List<ClientboundChunksBiomesPacket.ChunkBiomeData> chunkBiomeData) Creates an instance of aClientboundChunksBiomesPacketrecord class.- Parameters:
- chunkBiomeData- the value for the- chunkBiomeDatarecord component
 
 
- 
- 
Method Details- 
forChunks
- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
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).
- 
chunkBiomeDataReturns the value of thechunkBiomeDatarecord component.- Returns:
- the value of the chunkBiomeDatarecord component
 
 
-