Package fr.maxlego08.menu.api.command
Interface CommandArgument
public interface CommandArgument
Represents an argument for a command.
-
Method Summary
Modifier and TypeMethodDescriptionGets the command argument.Gets the name of the inventory to open with the argument.booleanChecks if the argument is required.
-
Method Details
-
getArgument
String getArgument()Gets the command argument.- Returns:
- The command argument.
-
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:
trueif the argument is required, otherwisefalse.
-