Class ClientboundLoginDisconnectPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundLoginDisconnectPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginDisconnectPacket(@NonNull net.kyori.adventure.text.Component reason) ClientboundLoginDisconnectPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull net.kyori.adventure.text.ComponentinthashCode()booleanGets whether the packet has handling priority.voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundLoginDisconnectPacketwithReason(@NonNull net.kyori.adventure.text.Component reason) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal
-
Constructor Details
-
ClientboundLoginDisconnectPacket
-
ClientboundLoginDisconnectPacket
-
ClientboundLoginDisconnectPacket
public ClientboundLoginDisconnectPacket(@NonNull @NonNull net.kyori.adventure.text.Component reason)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
isPriority
public boolean isPriority()Description copied from interface:PacketGets whether the packet has handling priority. If the result is true, the packet will be handled immediately after being decoded.- Specified by:
isPriorityin interfacePacket- Returns:
- Whether the packet has priority.
-
getReason
@NonNull public @NonNull net.kyori.adventure.text.Component getReason() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withReason
public @NonNull ClientboundLoginDisconnectPacket withReason(@NonNull @NonNull net.kyori.adventure.text.Component reason) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-