Go back to course page
Climbing the interface ladder
From basic graphical interfaces to very advanced ones
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?
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.
oh! Thanks! I thought that would be the way but I could only find the entityName which is a string