Class IntegerEditMenu

java.lang.Object
us.talabrek.ultimateskyblock.menu.AbstractConfigMenu
us.talabrek.ultimateskyblock.menu.IntegerEditMenu
All Implemented Interfaces:
EditMenu

public class IntegerEditMenu extends AbstractConfigMenu implements EditMenu
Editor for integer nodes.
  • Constructor Details

    • IntegerEditMenu

      public IntegerEditMenu(dk.lockfuglsang.minecraft.yml.YmlConfiguration menuConfig, MenuItemFactory factory, EditMenu parent)
  • 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.
      Specified by:
      onClick in interface EditMenu
      Parameters:
      event - A click on an item, not sure if it belongs on this menu.
      Returns:
      true if no further processing is needed.
    • createEditMenu

      public org.bukkit.inventory.Inventory createEditMenu(String configName, String path, int page)
      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 interface EditMenu
      Parameters:
      configName - Configuration name (filename)
      path - Path to node
      page - The page to show (for multi-page editors)
      Returns:
      An editor or null if this is not the right edit-menu.