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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClientboundChunksBiomesPacket.ChunkBiomeData> The field for thechunkBiomeDatarecord component.static final StreamCodec<FriendlyByteBuf, ClientboundChunksBiomesPacket> private static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates an instance of aClientboundChunksBiomesPacketrecord class.private -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkBiomeDatarecord component.final booleanIndicates whether some other object is "equal to" this one.forChunks(List<LevelChunk> chunks) voidhandle(ClientGamePacketListener listener) Passes this Packet on to the PacketListener for processing.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()private voidwrite(FriendlyByteBuf output) Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
chunkBiomeData
The field for thechunkBiomeDatarecord component. -
STREAM_CODEC
-
TWO_MEGABYTES
private static final int TWO_MEGABYTES- See Also:
-
-
Constructor Details
-
ClientboundChunksBiomesPacket
-
ClientboundChunksBiomesPacket
public ClientboundChunksBiomesPacket(List<ClientboundChunksBiomesPacket.ChunkBiomeData> chunkBiomeData) Creates an instance of aClientboundChunksBiomesPacketrecord class.- Parameters:
chunkBiomeData- the value for thechunkBiomeDatarecord component
-
-
Method Details
-
forChunks
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Description copied from interface:PacketPasses this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
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). -
chunkBiomeData
Returns the value of thechunkBiomeDatarecord component.- Returns:
- the value of the
chunkBiomeDatarecord component
-