Package com.marcusslover.plus.lib.item
Interface IMenu
- All Known Implementing Classes:
Menu
Represents a menu.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when the menu is closed.voidCalled when the menu is opened.default voidCalled when the menu is updated.
-
Method Details
-
open
Called when the menu is opened.- Parameters:
ctx- the canvasplayer- the player
-
close
Called when the menu is closed.- Parameters:
ctx- the canvasplayer- the player
-
update
default void update(@NotNull @NotNull Canvas ctx, @NotNull @NotNull org.bukkit.entity.Player player) Called when the menu is updated.- Parameters:
ctx- the canvasplayer- the player
-