Interface SharedInventoryGUI

All Superinterfaces:
InventoryGUI
All Known Implementing Classes:
SharedGUI

public interface SharedInventoryGUI extends InventoryGUI
Represents an InventoryGUI for players to view and interact with that's GUIState is shared between viewers.
  • 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