Class ResolvedCommandAction
java.lang.Object
dev.ua.theroer.magicutils.commands.ResolvedCommandAction
Public immutable view of an executable command action.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedCommandAction(String name, List<String> path, String description, List<String> aliases, String permission, MagicPermissionDefault permissionDefault, CommandThreading threading, List<CommandArgument> arguments) Creates a new resolved command action. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the aliases for this action.Returns the list of arguments for this action.Returns the description of the action.fullPath()Returns the full space-separated command path.Returns the full path segments including the action name.name()Returns the name of the action.path()Returns the command path segments leading to this action.Returns the required permission node.Returns the default permission state.Returns the execution threading mode.
-
Constructor Details
-
ResolvedCommandAction
public ResolvedCommandAction(String name, List<String> path, String description, List<String> aliases, String permission, MagicPermissionDefault permissionDefault, CommandThreading threading, List<CommandArgument> arguments) Creates a new resolved command action.- Parameters:
name- action namepath- command path segmentsdescription- action descriptionaliases- action aliasespermission- required permissionpermissionDefault- default permission statethreading- execution threading modearguments- list of command arguments
-
-
Method Details
-
name
-
path
-
description
-
aliases
-
permission
-
permissionDefault
Returns the default permission state.- Returns:
- default permission
-
threading
-
arguments
Returns the list of arguments for this action.- Returns:
- command arguments
-
fullPathSegments
-
fullPath
-