My goal is to instantly get every incoming Minecraft packet as text. I don't care if its JSON, xaml or anything else, as long as I can search trough it with .contains(). I also don't care if this is achieved with a mod loader like forge or an external program. The only limitation is that I only know Java and C#. I have access to the packet object, but I don't know how to convert them.
I have tried Converting the packet object to JSON using Gson.toJson()
, but many packets have circular references or other things, that will cause it to fail. I also tried working with the debugger, but I could not find a way to automate that.