Class BaseInventoryMenu<B extends ButtonMap>

    • Constructor Detail

      • BaseInventoryMenu

        protected BaseInventoryMenu​(Config config)
    • Method Detail

      • createChecked

        protected boolean createChecked​(org.bukkit.entity.Player player,
                                        String[] args,
                                        boolean bypass)
        Description copied from class: BaseMenu
        Create the menu after checking the conditions
        Specified by:
        createChecked in class BaseMenu
        Parameters:
        player - the player
        args - the arguments
        bypass - if the requirement should be bypassed
        Returns:
        true if the menu is created
        See Also:
        BaseMenu.create(Player, String[], boolean)
      • update

        public void update​(org.bukkit.entity.Player player)
        Description copied from class: Menu
        Called when updating the menu
        Specified by:
        update in class Menu
        Parameters:
        player - the player involved in
      • close

        public void close​(org.bukkit.entity.Player player)
        Description copied from class: Menu
        Close the menu
        Specified by:
        close in class Menu
        Parameters:
        player - the player involved in
      • closeAll

        public void closeAll()
        Description copied from class: Menu
        Close/Clear all inventories of the type
        Specified by:
        closeAll in class Menu
      • createButtonMap

        protected abstract B createButtonMap()
      • refreshButtonMapOnCreate

        protected void refreshButtonMapOnCreate​(B buttonMap,
                                                UUID uuid)
      • getButtonMap

        public B getButtonMap()