IceMetalPunk Posted December 12, 2015 Share Posted December 12, 2015 I have a GUI class that extends GuiScreen. No inventory is needed, it just draws two buttons: one for the setting and a Done button. Clicking the setting button changes the setting, which means it changes the button's text and also calls a method in the associated tile entity to set a byte value appropriately (according to the current button text). The problem I'm having is that I need it to call the method from the tile entity on the server, but as a client-side GUI class, it only runs on the client, meaning it gets the client-side tile entity instead. How do I make a button toggle on the client-side GUI element call a method on the server-side tile entity? Quote Whatever Minecraft needs, it is most likely not yet another tool tier. Link to comment Share on other sites More sharing options...
IceMetalPunk Posted December 12, 2015 Author Share Posted December 12, 2015 Awesome, everything works perfectly now! Thank you Quote Whatever Minecraft needs, it is most likely not yet another tool tier. Link to comment Share on other sites More sharing options...
Recommended Posts
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.