Record Class ClientboundLoginFinishedPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.login.ClientboundLoginFinishedPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public record ClientboundLoginFinishedPacket(GameProfile gameProfile)
extends Record
implements Packet<ClientLoginPacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GameProfileThe field for thegameProfilerecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLoginFinishedPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginFinishedPacket(GameProfile gameProfile) Creates an instance of aClientboundLoginFinishedPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameProfilerecord component.voidhandle(ClientLoginPacketListener listener) 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
The field for thegameProfilerecord 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 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
Returns the value of thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-