Jump to content

Simple Explanation of SMP client-server communication wanted


Recommended Posts

Posted

Okay, I get that there are tutorials on how to set up packet handlers.  What I am having trouble wrapping my head around is what information does a mod need to send from client to server and vice versa? Versus what is auto-magically handled by Forge & Vanilla MC parent classes. My brain is failing to make a crucial connection somewhere for this all to make sense.

 

How do you know what you need to set up packet handlers for?

Where does that information come from and when?

Is it related to events? Which events? For what? When?

 

I'm really lost when it comes to figuring out what needs to be done to make sure a mod works in both SSP and SMP modes. Simple explanations and links to open-source/github/etc code that does what you are talking about would be appreciated.

Posted

So... if I just create new tools, blocks, items and recipes for the standard crafting table or forge, is the client-server communication handled already at the level of the parent classes? i.e., do I need a custom packet handler for placing blocks derived from class Block?

 

I'm sort of getting the idea that packet handlers might only be needed for new GUIs, such as new crafting interfaces and new inventory containers, and for things that move, like vehicles, riding animals, etc. Is that correct?

 

...I probably should look at the packet handler tutorials in more detail.

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.