Class InventoryGUIPresenter
java.lang.Object
me.eddie.inventoryguiapi.gui.view.InventoryGUIPresenter
- All Implemented Interfaces:
GUIPresenter
Class that takes the generated contents of an InventoryGUI and shows it to a player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateView(org.bukkit.entity.Player viewer, GUISession session) Will update the viewer's view of the given GUISession.
-
Constructor Details
-
InventoryGUIPresenter
public InventoryGUIPresenter()
-
-
Method Details
-
updateView
Will update the viewer's view of the given GUISession. This will not recalculate what should be displayed though, instead useInventoryGUI.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 useSharedInventoryGUI.updateContentsAndView()to update the view for all viewers- Specified by:
updateViewin interfaceGUIPresenter- 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
-