Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Climbing the interface ladder

From basic graphical interfaces to very advanced ones

Entity inventories

  • 2013-07-27 15:25:20
    For the lecture 1 further exploration, how can I get the entity in the GuiHandler class, when I shift-right click on it to open its inventory, in order to pass it into the Gui and Container constructors so they can get its specific inventory?
  • 2013-07-27 16:12:21
    You have 3 integers for the x, y and z. There's nothing forcing you to actually use them for the x, y and z. Just use one of them to send along the entityId and then use that to get the entity when you want to create the container/interface.
  • 2013-07-27 16:20:39
    oh! Thanks! I thought that would be the way but I could only find the entityName which is a string
  • Log in or sign up to reply to this thread