Class BaseWrappedButton

    • Field Detail

      • menu

        protected final Menu menu
      • name

        protected final String name
      • button

        protected final me.hsgamer.hscore.bukkit.gui.button.Button button
    • Constructor Detail

      • BaseWrappedButton

        protected BaseWrappedButton​(ButtonBuilder.Input input)
        Create a new wrapped button
        Parameters:
        input - the input
    • Method Detail

      • createButton

        protected abstract me.hsgamer.hscore.bukkit.gui.button.Button createButton​(Map<String,​Object> section)
        Create the button from the section
        Parameters:
        section - the section
        Returns:
        the button
      • getOptions

        public Map<String,​Object> getOptions()
        Get the options of the button
        Returns:
        the options
      • getMenu

        public Menu getMenu()
        Description copied from interface: MenuElement
        Get the menu containing the element
        Specified by:
        getMenu in interface MenuElement
        Returns:
        the menu
      • getItemStack

        public org.bukkit.inventory.ItemStack getItemStack​(UUID uuid)
        Specified by:
        getItemStack in interface me.hsgamer.hscore.bukkit.gui.button.Button
      • handleAction

        public void handleAction​(UUID uuid,
                                 org.bukkit.event.inventory.InventoryClickEvent event)
        Specified by:
        handleAction in interface me.hsgamer.hscore.bukkit.gui.button.Button
      • forceSetAction

        public boolean forceSetAction​(UUID uuid)
        Specified by:
        forceSetAction in interface me.hsgamer.hscore.bukkit.gui.button.Button