PacketEvents API icon

PacketEvents API -----

PacketEvents is an open-source Packet Processing API.



1.6.8 LARGE PATCH UPDATE!! PERFORMANCE IMPROVEMENTS & BUG FIXES & NEW FEATURES
Changelog
The changelog might be small, but a lot of work has been added to each change.

• Official 1.16.3 support(not everything has been tested)
• PacketType has been moved from io.github.retrooper.packetevents.packet.PacketType to io.github.retrooper.packetevents.packettype.PacketType
• Reflection usage optimized, packet wrappers are overall faster now, memory usage should be much lower now. (Thanks to @funkemunky)
• WrappedPacketOutGameStateChange wrapper created(supports sending to players)
• WrappedPacketInUpdateSign wrapper created
• Sending packets to players has been optimized, I no longer use reflection(Suggested by @funkemunky)
• New functions appended to WrappedPacketReader interface and implemented in WrappedPacket.
Code (Text):

WrappedPacket wrapper = new WrappedPacket(object);
byte[] bArray = wrapper.readByteArray(0);
short[] sArray = wrapper.readShortArray(0);
int[] iArray = wrapper.readIntArray(0);
...
String[] strArray = wrapper.readStringArray(0);
Object[] array = wrapper.readObjectArray(0, MyClass.class);
 
• Setting to prevent PacketEvents from interacting with ProtocolLib if ProtocolLib is available added, some people experience issues with ProtocolLib.
Code (Text):

PacketEvents.getAPI().getSettings().setUseProtocolLibIfAvailable(boolean)
 
To-Do for 1.6.9-1.7?
• Update Checker in PacketEvents letting you know if a new version of PacketEvents has been released
• WrappedPacketOutCustomPayload wrapper
• WrappedPacketOutEntityMetadata wrapper
----------, Sep 16, 2020
Resource Information
Author:
----------
Total Downloads: 19,576
First Release: Jun 16, 2020
Last Update: Dec 10, 2024
Category: ---------------
All-Time Rating:
50 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings