2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2547 net/minecraft/network/listener/PacketListener
|
2021-03-27 10:26:40 -04:00
|
|
|
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.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10839 onDisconnected (Lnet/minecraft/class_2561;)V
|
2021-03-27 10:26:40 -04:00
|
|
|
COMMENT Called when the connection this listener listens to has disconnected.
|
|
|
|
COMMENT Can be used to display the disconnection reason.
|
2019-02-16 15:50:10 -05:00
|
|
|
ARG 1 reason
|
2021-03-27 10:26:40 -04:00
|
|
|
COMMENT the reason of disconnection; may be a generic message
|
2019-07-10 09:32:43 -04:00
|
|
|
METHOD method_2872 getConnection ()Lnet/minecraft/class_2535;
|
2021-03-27 10:26:40 -04:00
|
|
|
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()
|