Interface ArgumentProcessor

    • Method Detail

      • process

        Optional<String[]> process​(UUID uuid,
                                   String[] args)
        Process the arguments
        Parameters:
        uuid - the UUID of the player
        args - the arguments
        Returns:
        the remaining arguments, or empty if the arguments are invalid
      • tabComplete

        default Pair<Optional<List<String>>,​String[]> tabComplete​(UUID uuid,
                                                                        String[] args)
        Get the tab complete for the arguments
        Parameters:
        uuid - the UUID of the player
        args - the arguments
        Returns:
        A pair of the optional suggestions and the remaining arguments. The optional suggestions can be null if the processor should be skipped, then the remaining arguments will be used for the next processor
      • onClear

        default void onClear​(UUID uuid)
        Called when the display of the menu is removed
        Parameters:
        uuid - the UUID of the player
      • onClearAll

        default void onClearAll()
        Called when the menu is cleared