Class InventoryGUIPresenter

java.lang.Object
me.eddie.inventoryguiapi.gui.view.InventoryGUIPresenter
All Implemented Interfaces:
GUIPresenter

public class InventoryGUIPresenter extends Object implements GUIPresenter
Class that takes the generated contents of an InventoryGUI and shows it to a player.
  • Constructor Details

    • InventoryGUIPresenter

      public InventoryGUIPresenter()
  • Method Details

    • updateView

      public void updateView(org.bukkit.entity.Player viewer, GUISession session)
      Will update the viewer's view of the given GUISession. This will not recalculate what should be displayed though, instead use InventoryGUI.updateContentsAndView(Player) if this is what you require. This method will also only do it for the provided viewer, in the case of shared inventories use SharedInventoryGUI.updateContentsAndView() to update the view for all viewers
      Specified by:
      updateView in interface GUIPresenter
      Parameters:
      viewer - The viewer of the GUI. Or if it's a GUI with multiple viewers, any viewer of the GUI.
      session - The GUISession that determines what should be displayed