Package dev.demeng.pluginbase.menu
Interface IMenu
public interface IMenu
An interface containing common methods between the different menu layouts.
-
Method Summary
-
Method Details
-
open
void open(org.bukkit.entity.Player... players) Opens the menu for the provided player(s).- Parameters:
players- The players the menu should be opened to
-
onClose
default boolean onClose(@NotNull @NotNull org.bukkit.event.inventory.InventoryCloseEvent event) Called when the menu is closed. Does nothing by default.- Parameters:
event- The inventory close event- Returns:
- True if menu should be re-opened, false if menu should be closed
-