Class PredicateMenu

    • Constructor Detail

      • PredicateMenu

        public PredicateMenu​(Config config)
    • Method Detail

      • create

        public boolean create​(org.bukkit.entity.Player player,
                              String[] args,
                              boolean bypass)
        Description copied from class: Menu
        Called when opening the menu for the player
        Specified by:
        create in class Menu
        Parameters:
        player - the player involved in
        args - the arguments from the open command
        bypass - whether the plugin ignores the permission check
        Returns:
        Whether it's successful
      • tabComplete

        public List<String> tabComplete​(org.bukkit.entity.Player player,
                                        String[] args)
        Description copied from class: Menu
        Called when the player hit TAB when typing the command to open the menu
        Overrides:
        tabComplete in class Menu
        Parameters:
        player - the player involved in
        args - the arguments from the open command
        Returns:
        the list of suggestions
      • 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