Class NumberAction
java.lang.Object
io.github.projectunified.minigamecore.editor.extra.action.NumberAction
- All Implemented Interfaces:
EditorAction
The
EditorAction
for number value-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomplete
(EditorActor actor, String[] args) Get the completion suggestions, given the argumentsabstract boolean
execute
(EditorActor actor, Number value, String[] args) Execute the actionboolean
execute
(EditorActor actor, String[] args) Execute the actionusage()
Get the usage of the actionvalueComplete
(EditorActor actor) Get number suggestionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.minigamecore.editor.EditorAction
description, requiresArgs
-
Constructor Details
-
NumberAction
public NumberAction()
-
-
Method Details
-
usage
Description copied from interface:EditorAction
Get the usage of the action- Specified by:
usage
in interfaceEditorAction
- Returns:
- the usage
-
complete
Description copied from interface:EditorAction
Get the completion suggestions, given the arguments- Specified by:
complete
in interfaceEditorAction
- Parameters:
actor
- the actionargs
- the argument- Returns:
- the suggestions
-
execute
Execute the action- Parameters:
actor
- the actorvalue
- the valueargs
- the arguments- Returns:
- true if the action is executed successfully
-
valueComplete
Get number suggestions- Parameters:
actor
- the actor- Returns:
- the suggestions
-
execute
Description copied from interface:EditorAction
Execute the action- Specified by:
execute
in interfaceEditorAction
- Parameters:
actor
- the actorargs
- the arguments- Returns:
- true if the action is executed successfully
-