aridevelopment-de / fabric-packet-logger

Client-side packet logger with web-ui
https://modrinth.com/mod/packetlogger
GNU Affero General Public License v3.0
21 stars 6 forks source link

Rewrite to Reflection for most packets #12

Open Ari24-cb24 opened 1 year ago

Ari24-cb24 commented 1 year ago

Using Reflection to convert packet data into json data. Might need some mappings for certain field names. For certain packets, a custom serializer will still be needed tho.
Would be nice to have a deserializer of json data into packets, might have to look into that at a later point.

odpay commented 1 year ago

this is needed for the 'data' field in 'PluginMessage'