Class ClientboundDisconnectPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundDisconnectPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundDisconnectPacket(io.netty.buffer.ByteBuf in) ClientboundDisconnectPacket(net.kyori.adventure.text.Component reason) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.kyori.adventure.text.ComponentinthashCode()booleanGets whether the packet has handling priority.voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundDisconnectPacketwithReason(net.kyori.adventure.text.Component reason) Methods inherited from interface Packet
isTerminal
-
Constructor Details
-
ClientboundDisconnectPacket
public ClientboundDisconnectPacket(io.netty.buffer.ByteBuf in) -
ClientboundDisconnectPacket
public ClientboundDisconnectPacket(net.kyori.adventure.text.Component reason)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - 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
public net.kyori.adventure.text.Component getReason() -
equals
-
canEqual
-
hashCode
-
toString
-
withReason
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-