Record Class ClientboundLoginFinishedPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.login.ClientboundLoginFinishedPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public record ClientboundLoginFinishedPacket(com.mojang.authlib.GameProfile gameProfile)
extends Record
implements Packet<ClientLoginPacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfile
The field for thegameProfile
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, ClientboundLoginFinishedPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginFinishedPacket
(com.mojang.authlib.GameProfile gameProfile) Creates an instance of aClientboundLoginFinishedPacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfile
Returns the value of thegameProfile
record component.void
handle
(ClientLoginPacketListener p_374036_) final int
hashCode()
Returns a hash code value for this object.boolean
final String
toString()
Returns a string representation of this record class.type()
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
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfile
record component. -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf,ClientboundLoginFinishedPacket> STREAM_CODEC
-
-
Constructor Details
-
ClientboundLoginFinishedPacket
public ClientboundLoginFinishedPacket(com.mojang.authlib.GameProfile gameProfile) Creates an instance of aClientboundLoginFinishedPacket
record class.- Parameters:
gameProfile
- the value for thegameProfile
record component
-
-
Method Details
-
type
- Specified by:
type
in interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientLoginPacketListener>
-
isTerminal
public boolean isTerminal()- Specified by:
isTerminal
in interfacePacket<ClientLoginPacketListener>
-
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)
. -
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfile
record component.- Returns:
- the value of the
gameProfile
record component
-