Package me.hsgamer.hscore.minestom.gui
Class GUIDisplay
- All Implemented Interfaces:
Display,Initializable,Updatable
The base
Display for UI in Minestom-
Field Summary
Fields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the inventory of the displayvoidhandleClick(UUID uuid, net.minestom.server.event.inventory.InventoryClickEvent event) Handle the click eventvoidhandleClick(UUID uuid, net.minestom.server.event.inventory.InventoryPreClickEvent event) Handle the click event.voidinit()voidstop()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
-
handleClick
public void handleClick(UUID uuid, net.minestom.server.event.inventory.InventoryPreClickEvent event) Handle the click event. This can be used to cancel the event.- Parameters:
uuid- the unique idevent- the click event
-
handleClick
Handle the click event- Parameters:
uuid- the unique idevent- the click event
-
getInventory
Get the inventory of the display- Returns:
- the inventory
-
init
public void init() -
stop
public void stop() -
update
public void update()
-