Posted December 28, 201410 yr Hello, I'm trying to make a packet-sniffing mod that renders information about block changes, entity moves or effects in the overworld. I know, how to render it, but I can't find proper way to read downstream packets. I found an example handler in net.minecraftforge.net.common.network.PacketLoggingHandler, however I couldn't make it work. Now, how to read Packet objects, not raw bytes? Thanks in advence
December 28, 201410 yr Hi Why do you want to use packets? I suggest it would be better to hook into the appropriate forge events instead. If you really want to use packets, I would suggest you intercept the appropriate methods in INetHandlerPlayClient. You will probably need to use ASM+Reflection for that. -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.