Jump to content

I still don't quite understand how I use the Simple Network Implementation stuff


Recommended Posts

I've read diesieben07's and Ablaze's tutorials on the SNI stuff and I still don't quite understand it.


I'm working on a mod with a single block which is a tile entity that has two inventories. Basically what I want to know is when the inventory gets updated (however that happens, I assume there's an event to use) I create an appropriate packet and send it using the static SNW instance I made in the preInit event? Also, how do I convert all the ItemStacks in the inventories into bytes for the toBytes method when my packet class implements IMessage?


Also, how do I know what value to pass for the fourth paramter of registerMessage?

I like trains.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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