Interface SharedInventoryGUI
- All Superinterfaces:
InventoryGUI
- All Known Implementing Classes:
SharedGUI
Represents an InventoryGUI for players to view and interact with that's GUIState is shared between viewers.
-
Method Summary
Modifier and TypeMethodDescriptionGet the shared GUIState that is shared by all viewers of this GUIvoidRecalculates the GUIElements to show the viewers (and what their display itemstacks are) and will update what the viewers see - if anybody is viewing this GUI.voidWill update what the viewers of the GUI see to match the GUI's stateMethods inherited from interface me.eddie.inventoryguiapi.gui.guis.InventoryGUI
getInventoryType, getMaximumGUISize, handleBedrockResponse, handleBukkitEvent, isGUISizeDynamic, open, open, updateContentsAndView, updateView
-
Method Details
-
getGUIState
GUIState getGUIState()Get the shared GUIState that is shared by all viewers of this GUI- Returns:
- The shared GUIState
-
updateContentsAndView
void updateContentsAndView()Recalculates the GUIElements to show the viewers (and what their display itemstacks are) and will update what the viewers see - if anybody is viewing this GUI. If no players are viewing this GUI then this method will silently fail -
updateView
void updateView()Will update what the viewers of the GUI see to match the GUI's state
-