Record Class ClientboundCookieRequestPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.cookie.ClientboundCookieRequestPacket
- All Implemented Interfaces:
Packet<ClientCookiePacketListener>
public record ClientboundCookieRequestPacket(Identifier key)
extends Record
implements Packet<ClientCookiePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thekeyrecord component.static final StreamCodec<FriendlyByteBuf, ClientboundCookieRequestPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates an instance of aClientboundCookieRequestPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidhandle(ClientCookiePacketListener listener) Passes this Packet on to the PacketListener for processing.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.type()private voidwrite(FriendlyByteBuf output) Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
key
The field for thekeyrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
ClientboundCookieRequestPacket
-
ClientboundCookieRequestPacket
Creates an instance of aClientboundCookieRequestPacketrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientCookiePacketListener>
-
handle
Description copied from interface:PacketPasses this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientCookiePacketListener>
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-