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, UUID sessionId)
extends Record
implements Packet<ClientLoginPacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.private final UUIDThe field for thesessionIdrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLoginFinishedPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginFinishedPacket(com.mojang.authlib.GameProfile gameProfile, UUID sessionId) Creates an instance of aClientboundLoginFinishedPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfileReturns the value of thegameProfilerecord component.voidhandle(ClientLoginPacketListener listener) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface Packet
isSkippable
-
Field Details
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfilerecord component. -
sessionId
The field for thesessionIdrecord component. -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLoginFinishedPacket> STREAM_CODEC
-
-
Constructor Details
-
ClientboundLoginFinishedPacket
Creates an instance of aClientboundLoginFinishedPacketrecord class.- Parameters:
gameProfile- the value for thegameProfilerecord componentsessionId- the value for thesessionIdrecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientLoginPacketListener>
-
isTerminal
public boolean isTerminal()- Specified by:
isTerminalin interfacePacket<ClientLoginPacketListener>
-
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). -
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-