Class BooleanEditMenu
java.lang.Object
us.talabrek.ultimateskyblock.menu.AbstractConfigMenu
us.talabrek.ultimateskyblock.menu.BooleanEditMenu
- All Implemented Interfaces:
EditMenu
Simple menu-less editor for boolean values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.Inventory
createEditMenu
(String configName, String path, int page) Creates an edit menu for this type.boolean
onClick
(org.bukkit.event.inventory.InventoryClickEvent e) Returns true if the action belonged to the menu.Methods inherited from class us.talabrek.ultimateskyblock.menu.AbstractConfigMenu
getMenuConfig
-
Constructor Details
-
BooleanEditMenu
public BooleanEditMenu(dk.lockfuglsang.minecraft.yml.YmlConfiguration menuConfig)
-
-
Method Details
-
onClick
public boolean onClick(org.bukkit.event.inventory.InventoryClickEvent e) Description copied from interface:EditMenu
Returns true if the action belonged to the menu. -
createEditMenu
Description copied from interface:EditMenu
Creates an edit menu for this type.- Specified by:
createEditMenu
in interfaceEditMenu
- Parameters:
configName
- Configuration name (filename)path
- Path to nodepage
- The page to show (for multi-page editors)- Returns:
- An editor or
null
if this is not the right edit-menu.
-