Jump to content

Noxyper

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Noxyper

  1. Well, I suppose I could've done that, but when an even less experienced programmer(me) comes for help, he doesn't understand the answers. Sorry Ben, could you evaluate so I understand?
  2. Well, I don't want to call the method at everyone wearing the certain set of armor, so I need to call it only at the guy who actually pressed 'I'.
  3. Good evening, ladies and gentlemen of minecraftforge.net! I've come to you today to ask you for one thing. Help. You see, I've been having troubles with my mod and I got a message from a certain UberAffe on minecraftforum.net to get help from here as he currently is unavailable to help me. What I want to do is to update a method in my armor class on the server side, and for that I need a packet. The packet has been made, but my trouble is to call it. The simple process here is that you press the letter 'I' and you'll turn invisible. The advanced one is that you press the letter 'I,' the KeyHandler sends a message to my packet, updates my method on the server side and I turn invisible. My problem here is to send a message. How do I call the UUID in a keyhandler method? My current code would work, but it is asking for a GameProfile, which I don't know where to get. If you need the code, my github code is here below: MainClass.class https://github.com/BlackHyp3r/GnC/blob/master/MainFile Armor.class https://github.com/BlackHyp3r/GnC/blob/master/NexiteTankArmor Message.class (w/ Handler.class) https://github.com/BlackHyp3r/GnC/blob/master/Message%2BHandler EventHandler.class https://github.com/BlackHyp3r/GnC/blob/master/EventListener Hope you'll be able to help! P.S. If you need to look at the original forum post, link is below http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2504527-armor-with-special-powers?page=2#c21
×
×
  • Create New...

Important Information

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