Package space.maxus.flare.ui.compose
Interface Button.ClickHandler
- All Known Subinterfaces:
Button.CancellingClickHandler
- Enclosing interface:
- Button
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Button.ClickHandlercancelling(BiConsumer<Button, org.bukkit.event.inventory.InventoryClickEvent> handler) A click handler that always cancels eventbooleanstatic @NotNull Button.ClickHandlernoop()A no-op click handler
-
Method Details
-
noop
A no-op click handler -
cancelling
@NotNull static @NotNull Button.ClickHandler cancelling(BiConsumer<Button, org.bukkit.event.inventory.InventoryClickEvent> handler) A click handler that always cancels event- Parameters:
handler- Inner handler- Returns:
- Handler
-
click
boolean click(@NotNull @NotNull Button self, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent e)
-