Interface Button
- All Superinterfaces:
Initializable
An interface for all buttons
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanforceSetAction(UUID uuid) Check if the action of this button should be set even if the display item is nullnet.minestom.server.item.ItemStackgetItemStack(UUID uuid) Get the item stack for the unique iddefault voidhandleAction(UUID uuid, net.minestom.server.event.inventory.InventoryClickEvent event) Handle action for the unique iddefault booleanhandleAction(UUID uuid, net.minestom.server.event.inventory.InventoryPreClickEvent event) Handle action for the unique id.Methods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init, stop
-
Field Details
-
EMPTY
The empty button
-
-
Method Details
-
getItemStack
Get the item stack for the unique id- Parameters:
uuid- the unique id- Returns:
- the item stack
-
handleAction
default boolean handleAction(UUID uuid, net.minestom.server.event.inventory.InventoryPreClickEvent event) Handle action for the unique id. This action will be called beforehandleAction(UUID, InventoryClickEvent)so that you can cancel the click.- Parameters:
uuid- the unique idevent- the click event- Returns:
- true if the action can be continued to
handleAction(UUID, InventoryClickEvent)
-
handleAction
Handle action for the unique id- Parameters:
uuid- the unique idevent- the click event
-
forceSetAction
Check if the action of this button should be set even if the display item is null- Parameters:
uuid- the unique id- Returns:
- true if it should
-