HypixelDev / ModAPI

Hypixel Mod API for interfacing with the Hypixel Server via the Minecraft Plugin Message system.
MIT License
82 stars 10 forks source link

change to using functional interfaces for clientbound packet handling #29

Closed nextdayy closed 4 months ago

nextdayy commented 4 months ago

This PR aims to switch the current ClientboundPacketHandler system to using type-safe functional interfaces instead, which are specified for each packet type individually.

Motivations

I am, as always, open to feedback on this change. I think it is overall very good in terms of the future extensibility and cleanliness of using the API.

ConnorLinfoot commented 4 months ago

Thanks! I agree, this does improve the overall usage of the API and will make it nicer to work with especially in the future when more packets are added.