Record Class ClientboundForgetLevelChunkPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundForgetLevelChunkPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public record ClientboundForgetLevelChunkPacket(ChunkPos pos)
extends Record
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkPosThe field for theposrecord component.static final StreamCodec<FriendlyByteBuf, ClientboundForgetLevelChunkPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates an instance of aClientboundForgetLevelChunkPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidhandle(ClientGamePacketListener listener) Passes this Packet on to the NetHandler for processing.final 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.type()private voidwrite(FriendlyByteBuf output) Writes the raw packet data to the data stream.Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
pos
The field for theposrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
ClientboundForgetLevelChunkPacket
-
ClientboundForgetLevelChunkPacket
Creates an instance of aClientboundForgetLevelChunkPacketrecord class.- Parameters:
pos- the value for theposrecord component
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler 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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-