Class IntegerEditMenu
java.lang.Object
us.talabrek.ultimateskyblock.menu.AbstractConfigMenu
us.talabrek.ultimateskyblock.menu.IntegerEditMenu
- All Implemented Interfaces:
EditMenu
Editor for integer nodes.
-
Constructor Summary
ConstructorDescriptionIntegerEditMenu
(dk.lockfuglsang.minecraft.yml.YmlConfiguration menuConfig, MenuItemFactory factory, EditMenu parent) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.Inventory
createEditMenu
(String configName, String path, int page) An editor for integers.boolean
onClick
(org.bukkit.event.inventory.InventoryClickEvent event) Returns true if the action belonged to the menu.Methods inherited from class us.talabrek.ultimateskyblock.menu.AbstractConfigMenu
getMenuConfig
-
Constructor Details
-
Method Details
-
onClick
public boolean onClick(org.bukkit.event.inventory.InventoryClickEvent event) Description copied from interface:EditMenu
Returns true if the action belonged to the menu. -
createEditMenu
An editor for integers.Config: Integer Editor +---+---+---+---+---+---+---+---+---+ 0 | | | | | | | | G | | +---+---+---+---+---+---+---+---+---+ 1 | R | R | R | | I | | G | G | G | +---+---+---+---+---+---+---+---+---+ 2 | | | | | | | | G | | +---+---+---+---+---+---+---+---+---+ 3 |-1k|100|-10|-1 | 0 |+1 |+10|100|+1k| +---+---+---+---+---+---+---+---+---+ 4 | | | | | | | ^ | | | +---+---+---+---+---+---+---+---+---+ 5 |SAV| | | | | | | | | +---+---+---+---+---+---+---+---+---+ 0 1 2 3 4 5 6 7 8
- 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.
-