Posted May 7, 20169 yr Hello, is there any way to read incoming vanilla packets(client side)? I only found the NetworkRegistry for creating new Channels.
May 7, 20169 yr While there are hooks for custom packets, I haven't seen one for vanilla ones yet. Standard way of doing it is creating INetHandlerPlayClient or extending alredy implemented one and replacing it in some way. Replacing can happen via event but right now I am unsure in which one exacly since using wrong event may end bad. I can suggest ClientConnectedToServerEvent or number of other events, idk for sure tho. 1.7.10 is no longer supported by forge, you are on your own.
May 7, 20169 yr Author The problem is that the NetworkManager inside "NetHandlerPlayClient" is declared as private final, so I can't access it easily.
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.