Package redempt.ordinate.builder
Class CommandArguments<T>
java.lang.Object
redempt.ordinate.builder.CommandArguments<T>
- Type Parameters:
T
- The sender type
Represents the parsed arguments for a single command execution
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CommandArguments
-
-
Method Details
-
sender
- Returns:
- The sender of the command
-
get
Gets an argument by name- Type Parameters:
V
- The argument's type- Parameters:
argName
- The name of the argument- Returns:
- The value of the argument
- Throws:
IllegalArgumentException
- If the given argument name is not found
-
get
public <V> V get(int index) Gets an argument by index. Recommended to useget(String)
for clarity.- Parameters:
index
- The index of the argument
-