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.GameProfileThe field for thegameProfilerecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLoginFinishedPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginFinishedPacket(com.mojang.authlib.GameProfile gameProfile) 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) Passes this Packet on to the PacketListener for processing.final inthashCode()Returns a hash code value for this object.booleanfinal 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. -
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 aClientboundLoginFinishedPacketrecord class.- Parameters:
gameProfile- the value for thegameProfilerecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientLoginPacketListener>
-
handle
Description copied from interface:PacketPasses this Packet on to the PacketListener for processing.- 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
-