[API] PacketListenerAPI icon

[API] PacketListenerAPI -----

Simple API to manipulate sent and received packets | compatible with all versions



Switched to PacketHandlers
  • switched to PacketHandlers instead of events
    • events are still available for compatibility
Code (Java):

    PacketListenerAPI. addPacketHandler ( new PacketHandler ( ) {

            @Override
            public void onSend (SentPacket packet ) {
            }

            @Override
            public void onReceive (ReceivedPacket packet ) {
            }

        } ) ;
 

Events might be convenient to use, but they are not very efficient.
For example, calling the send or receive event takes 30 milliseconds on average.
That may not sound much, but compared to the new method, events are way slower.
The PacketHandlers never took over 1 millisecond to call while testing, so scaled to bigger servers it is a lot more efficient.
----------, Mar 16, 2015
Resource Information
Author:
----------
Total Downloads: 159,584
First Release: Jan 5, 2015
Last Update: Mar 27, 2022
Category: ---------------
All-Time Rating:
60 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings