Jump to content

[SOLVED]How to send render specific information to client?


Busti

Recommended Posts

Hello,

I've made a custom storage system which holds an Integer number of energy but this will only update on the server. How can I send this Variable to the client to indicate the Value over a Renderer? (The renderer is already done and working)

 

I'm looking forward for any Help

 

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Link to comment
Share on other sites

You just send the information to the player. I suggest following this tutorial:

http://www.minecraftforge.net/wiki/Advanced_Packet_Handling

 

 

I use it myself. I even use it for small packet handling... I just find it easy to use.

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

Is a tile entity attached to the block? If not, make one for it. I am guessing you have done that because how else would you store the variable?

 

You make a packet that obtains the information yada yada. I think you should know how to do it?

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

Oh. I forgot to say that it is a Block which holds the variable.  ::)

 

As long as the variable is static or you have a reference to your block in your base mod class, it doesn't matter. You'll still have to stick to packets. After all, that's how the Internet works: send packets from clients to servers and vice versa.

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.

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.