mirror of https://github.com/FabricMC/yarn.git
19 lines
931 B
Plaintext
19 lines
931 B
Plaintext
CLASS net/minecraft/class_2547 net/minecraft/network/listener/PacketListener
|
|
COMMENT A packet listener listens to packets on a {@linkplain ClientConnection
|
|
COMMENT connection}.
|
|
COMMENT
|
|
COMMENT <p>Its listener methods will be called on the netty event loop than the
|
|
COMMENT client or server game engine threads.
|
|
METHOD method_10839 onDisconnected (Lnet/minecraft/class_2561;)V
|
|
COMMENT Called when the connection this listener listens to has disconnected.
|
|
COMMENT Can be used to display the disconnection reason.
|
|
ARG 1 reason
|
|
COMMENT the reason of disconnection; may be a generic message
|
|
METHOD method_2872 getConnection ()Lnet/minecraft/class_2535;
|
|
COMMENT Returns the connection this packet listener intends to listen to.
|
|
COMMENT
|
|
COMMENT @apiNote The returned connection may or may not have this listener as
|
|
COMMENT its current packet listener.
|
|
COMMENT
|
|
COMMENT @see ClientConnection#getPacketListener()
|