retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
563 stars 151 forks source link

Be able to process incoming packets ahead of protocol translation layers such as ViaVersion & ProtocolSupport. #294

Closed retrooper closed 2 years ago

retrooper commented 2 years ago

For this, minor changes would happen to our mappings. Minor changes to our PacketWrapper. It would be more version-dynamic and would likely have ONE version field. This could get quite confusing but would come with great benefits. We will need this to run on the proxy without ViaVersion or ProtocolSupport.

retrooper commented 2 years ago

This will be in a separate branch, as it may take a while to develop and might cause breaking changes until finished. If this is fixed before https://github.com/retrooper/packetevents/issues/273 that issue can be closed too, as it will indirectly also achieve that.

retrooper commented 2 years ago

Really close to finishing. Might need some testing and still need adjust the WrappedBlockState to make it also work. Then everything should be ready, and once all is tested to work, we can merge into 2.0 branch with packetevents processing packets ahead of protocolsupport & via.

retrooper commented 2 years ago

We won't do this on Spigot, but its ready on all other platforms (like proxies) :) on our version-dynamic branch.