Posted August 3, 201510 yr Hello, I have 4 upgrade-slots in a Container and i want to notify all players using this Container to update their GUIs. I know that i need to do this with the "detectAndSendChanges(...)"-method in my Container-class. Now the question: Can/Should I use the method "sendSlotContents()" from the class "ICrafting" by iterating through all "crafters", or should I send a packet to all "crafters" to update their GUIs? Thanks, Julian
August 3, 201510 yr Author Another question: If I want to know if something has been placed or removed from an upgrade slot I need to check for it in the "detectAndSendChanges()"-method, or not?
August 3, 201510 yr Author Okay, I want to change the GUI when a certain Item is added to the upgrade slots.
August 3, 201510 yr Author And where can I get the information which items are placed in the slots? I thought that this information is only available in the Container class.
August 3, 201510 yr Author Ok ok. Is it right that I can't get the items by doing "tileEntity.getStackInSlot(...)", because the TileEntity is server only?
August 3, 201510 yr Author Yeah, of course I can do it in the container, but can i do it in the GuiContainer also?
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.