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
Modifier and TypeClassDescriptionstatic final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ClientboundChunksBiomesPacket.ChunkBiomeData>
The field for thechunkBiomeData
record component.private static final int
-
Constructor Summary
ConstructorDescriptionCreates an instance of aClientboundChunksBiomesPacket
record class.ClientboundChunksBiomesPacket
(FriendlyByteBuf p_275221_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkBiomeData
record component.final boolean
Indicates whether some other object is "equal to" this one.forChunks
(List<LevelChunk> p_275394_) void
handle
(ClientGamePacketListener p_275524_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_275376_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
chunkBiomeData
The field for thechunkBiomeData
record component. -
TWO_MEGABYTES
private static final int TWO_MEGABYTES- See Also:
-
-
Constructor Details
-
ClientboundChunksBiomesPacket
-
ClientboundChunksBiomesPacket
public ClientboundChunksBiomesPacket(List<ClientboundChunksBiomesPacket.ChunkBiomeData> chunkBiomeData) Creates an instance of aClientboundChunksBiomesPacket
record class.- Parameters:
chunkBiomeData
- the value for thechunkBiomeData
record component
-
-
Method Details
-
forChunks
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in 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 thechunkBiomeData
record component.- Returns:
- the value of the
chunkBiomeData
record component
-