Package studio.mevera.lotus.api.menu
Interface MenuHandler<C>
- All Known Subinterfaces:
InteractiveMenu<C>
public interface MenuHandler<C>
Optional event hooks for a
Menu.
Implement this when a menu needs to react to open, close, click, or drag events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRuns when the menu is closed.default voidRuns when the menu receives a drag event.default voidRuns when the menu is opened.default voidonPostClick(@NotNull MenuView<C, ?> view, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Runs after button dispatch.default booleanonPreClick(@NotNull MenuView<C, ?> view, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Runs before button dispatch.
-
Method Details