Class ClientboundLoginFinishedPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundLoginFinishedPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginFinishedPacket(@NonNull GameProfile profile, @NonNull UUID sessionId) ClientboundLoginFinishedPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull GameProfile@NonNull UUIDinthashCode()booleanReturns whether the packet is terminal.voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundLoginFinishedPacketwithProfile(@NonNull GameProfile profile) @NonNull ClientboundLoginFinishedPacketwithSessionId(@NonNull UUID sessionId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
shouldRunOnGameThread
-
Constructor Details
-
ClientboundLoginFinishedPacket
public ClientboundLoginFinishedPacket(io.netty.buffer.ByteBuf in) -
ClientboundLoginFinishedPacket
public ClientboundLoginFinishedPacket(@NonNull @NonNull GameProfile profile, @NonNull @NonNull UUID sessionId)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
isTerminal
public boolean isTerminal()Description copied from interface:PacketReturns whether the packet is terminal. If true, this should be the last packet sent inside a protocol state. Subsequently,Session.setAutoRead(boolean)should be disabled when a terminal packet is received, until the session has switched into a new state and is ready to receive more packets.- Specified by:
isTerminalin interfacePacket- Returns:
- Whether the packet is terminal.
-
getProfile
-
getSessionId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withProfile
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSessionId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-