Class ClientListener
java.lang.Object
org.geysermc.mcprotocollib.network.event.session.SessionAdapter
org.geysermc.mcprotocollib.protocol.ClientListener
- All Implemented Interfaces:
SessionListener
Handles making initial login and status requests for clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnected(ConnectedEvent event) Called when a session connects.voidpacketReceived(Session session, Packet packet) Called when a session receives a packet.voidpacketSent(Session session, Packet packet) Called when a session sends a packet.Methods inherited from class org.geysermc.mcprotocollib.network.event.session.SessionAdapter
disconnected, disconnecting, packetError, packetSending
-
Constructor Details
-
ClientListener
-
-
Method Details
-
packetReceived
Description copied from interface:SessionListenerCalled when a session receives a packet.- Specified by:
packetReceivedin interfaceSessionListener- Overrides:
packetReceivedin classSessionAdapterpacket- the packet that was just received.
-
packetSent
Description copied from interface:SessionListenerCalled when a session sends a packet.- Specified by:
packetSentin interfaceSessionListener- Overrides:
packetSentin classSessionAdapterpacket- Packet just sent.
-
connected
Description copied from interface:SessionListenerCalled when a session connects.- Specified by:
connectedin interfaceSessionListener- Overrides:
connectedin classSessionAdapter- Parameters:
event- Data relating to the event.
-