Package me.hsgamer.hscore.ui
Interface Holder<D extends Display>
- Type Parameters:
D
- the type of the display
- All Superinterfaces:
Initializable
,Updatable
- All Known Implementing Classes:
BaseHolder
,BukkitGUIHolder
,GUIHolder
,MinestomGUIHolder
The holder for all displays
-
Method Summary
Modifier and TypeMethodDescriptioncreateDisplay
(@NotNull UUID uuid) Create a display with the unique idgetDisplay
(@NotNull UUID uuid) Get the display for the unique id<E> void
handleEvent
(E event) Handle the eventvoid
Remove all displaysvoid
removeDisplay
(@NotNull UUID uuid) Remove a display with the unique iddefault void
Update the display for the unique idMethods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init, stop
-
Method Details
-
createDisplay
Create a display with the unique id- Parameters:
uuid
- the unique id- Returns:
- the display
-
removeDisplay
Remove a display with the unique id- Parameters:
uuid
- the unique id
-
getDisplay
Get the display for the unique id- Parameters:
uuid
- the unique id- Returns:
- the display
-
removeAllDisplay
void removeAllDisplay()Remove all displays -
handleEvent
<E> void handleEvent(@NotNull E event) Handle the event- Parameters:
event
- the event
-
update
Update the display for the unique id- Parameters:
uuid
- the unique id
-