Interface CommandArgument


public interface CommandArgument
Represents an argument for a command.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the command argument.
    Gets the name of the inventory to open with the argument.
    boolean
    Checks if the argument is required.
  • Method Details

    • getArgument

      String getArgument()
      Gets the command argument.
      Returns:
      The command argument.
    • getInventory

      Optional<String> getInventory()
      Gets the name of the inventory to open with the argument.
      Returns:
      The optional name of the inventory associated with the argument.
    • isRequired

      boolean isRequired()
      Checks if the argument is required.
      Returns:
      true if the argument is required, otherwise false.