Class BaseWrappedButton<B extends Button>

    • Constructor Detail

      • BaseWrappedButton

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

      • createButton

        protected abstract B 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
      • getItem

        public Item getItem​(@NotNull
                            @NotNull UUID uuid)
        Specified by:
        getItem in interface Button
      • forceSetAction

        public boolean forceSetAction​(@NotNull
                                      @NotNull UUID uuid)
        Specified by:
        forceSetAction in interface Button