Jump to content

Recommended Posts

Posted (edited)

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 by soravoid
Solved
Posted
  • Thanks 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted

@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.

Posted

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.