88dcf0cb32
API changes: * The PacketListener now uses a "ListeningWhitelist" class to report which packet ids it wishes to listen in on for either the client or the server. This makes it possible to use your plugin class as the listener more easily. * Added a priority system similar to Bukkit events. Performance changes: * Create and maintain a separate list of listeners for each packet ID. This uses slightly more memory, but is far more efficient. Especially in light of the priority system. In addition, the listener lists are (hopefully) concurrent. They're optimized for read-access, however. Adding or removing a listener is a O(n) operation. |
||
---|---|---|
ItemDisguise | ||
ProtocolLib |