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.privateClientboundChunksBiomesPacket(FriendlyByteBuf p_275221_) -
Method Summary
Modifier 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.type()private voidwrite(FriendlyByteBuf p_275376_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.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
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
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). -
chunkBiomeData
Returns the value of thechunkBiomeDatarecord component.- Returns:
- the value of the
chunkBiomeDatarecord component
-