Package me.hsgamer.bettergui.api.action
Class CommandAction
- java.lang.Object
-
- me.hsgamer.bettergui.api.action.BaseAction
-
- me.hsgamer.bettergui.api.action.CommandAction
-
- All Implemented Interfaces:
BiConsumer<UUID,BatchRunnable.Process>,Action,MenuElement,ProcessApplier
- Direct Known Subclasses:
OpAction,PlayerAction
public abstract class CommandAction extends BaseAction
The command action
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommandAction(ActionBuilder.Input input)Create a new action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetFinalCommand(UUID uuid)Get the final command to use in the dispatch methodprotected booleanshouldBeTrimmed()Check if the string should be trimmed-
Methods inherited from class me.hsgamer.bettergui.api.action.BaseAction
getMenu, getReplacedString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
accept, andThen
-
-
-
-
Constructor Detail
-
CommandAction
protected CommandAction(ActionBuilder.Input input)
Create a new action- Parameters:
input- the input
-
-
Method Detail
-
getFinalCommand
protected String getFinalCommand(UUID uuid)
Get the final command to use in the dispatch method- Parameters:
uuid- the unique id- Returns:
- the final command
-
shouldBeTrimmed
protected boolean shouldBeTrimmed()
Description copied from class:BaseActionCheck if the string should be trimmed- Overrides:
shouldBeTrimmedin classBaseAction- Returns:
- true if it should
-
-