Posted June 19, 20196 yr Since the IMessage interface was taken out (at least to my knowledge, the simpleimpl package is no longer in net.minecraftforge.fml.network.simple), what is the new way to send packets from the server to the client? I know that it has something to do with a MSG class from the docs, but it doesn't look like any of the MSG classes relate to Minecraft Forge (I also may not have eyes) (I have capabilities and I want to tell the client the values, they're set up correctly) Edited June 20, 20196 yr by soravoid Solved
June 20, 20196 yr https://gist.github.com/williewillus/353c872bcf1a6ace9921189f6100d09a#nitty-gritty-random-things-ctrlf-section About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 20, 20196 yr Author @Cadiboo Looked through the section that you send me, I should probably say that I do have a PacketHandler with the SimpleChannel stuff. Going through the ProjectE packets, they all still implement IMessage, so I'm still not sure what to do. I digged through the Forge files a bit more and see a pretty promising "IndexedMessageCodec", so I'll post back here once I try using that.
June 20, 20196 yr Author UPDATE: So, the class I mentioned above wasn't the correct thing to try and extend, but I've found an interface called IPacket. That seems promising but I have no idea what I should put in the triangular brackets (T in IPacket<T>). Does anyone have any ideas?
June 20, 20196 yr Author Thank you! My "mana" bar is working now and the capabilities are synced up! Marking as solved
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.