Package me.hsgamer.hscore.bukkit.gui
Class GUIDisplay
- All Implemented Interfaces:
Display,Initializable,Updatable,org.bukkit.inventory.InventoryHolder
public class GUIDisplay
extends BaseDisplay<GUIHolder>
implements org.bukkit.inventory.InventoryHolder
The base
Display for UI in Bukkit-
Field Summary
Fields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.InventoryvoidhandleClickEvent(UUID uuid, org.bukkit.event.inventory.InventoryClickEvent event) Handle the click eventvoidinit()booleanShould the display force the viewers to update their inventorysetForceUpdate(boolean forceUpdate) Should the display force the viewers to update their inventoryvoidstop()voidupdate()Methods inherited from class me.hsgamer.hscore.ui.BaseDisplay
getHolder, getUniqueIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.ui.Display
handleEvent
-
Constructor Details
-
GUIDisplay
Create a new display- Parameters:
uuid- the unique idholder- the holder
-
-
Method Details
-
isForceUpdate
public boolean isForceUpdate()Should the display force the viewers to update their inventory- Returns:
- true if it should
-
setForceUpdate
Should the display force the viewers to update their inventory- Parameters:
forceUpdate- true to force them- Returns:
thisfor builder chain
-
handleClickEvent
Handle the click event- Parameters:
uuid- the unique idevent- the click event
-
init
public void init()- Specified by:
initin interfaceInitializable
-
stop
public void stop()- Specified by:
stopin interfaceInitializable
-
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder
-
update
public void update()
-