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 right before the canvas data is erased.default voidCalled when the menu is updated.
-
Method Details
-
open
Called when the menu is opened.- Parameters:
ctx- the canvasplayer- the player
-
preClose
default void preClose(@NotNull @NotNull Canvas ctx, @NotNull @NotNull org.bukkit.entity.Player player) Called right before the canvas data is erased. You may use the menuUpdateContext here.- Parameters:
ctx- the canvasplayer- the player
-
close
Called when the menu is closed. At this point using menuUpdateContext is not possible.- 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
-