Package me.hsgamer.bettergui.action.type
Class CommandAction
- java.lang.Object
-
- me.hsgamer.bettergui.api.action.BaseAction
-
- me.hsgamer.bettergui.action.type.CommandAction
-
- All Implemented Interfaces:
BiConsumer<UUID,TaskProcess>,Action,MenuElement,ProcessApplier
- Direct Known Subclasses:
OpAction,PermissionAction,PlayerAction
public abstract class CommandAction extends BaseAction
The command action
-
-
Field Summary
-
Fields inherited from class me.hsgamer.bettergui.api.action.BaseAction
input
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommandAction(ActionBuilder.Input input)Create a new action
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaccept(UUID uuid, TaskProcess process)protected abstract voidaccept(org.bukkit.entity.Player player, String command)Accept the command-
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
andThen
-
-
-
-
Constructor Detail
-
CommandAction
protected CommandAction(ActionBuilder.Input input)
Create a new action- Parameters:
input- the input
-
-
Method Detail
-
accept
protected abstract void accept(org.bukkit.entity.Player player, String command)Accept the command- Parameters:
player- the playercommand- the command
-
accept
public void accept(UUID uuid, TaskProcess process)
-
-