Package me.hsgamer.bettergui.api.action
Class BaseAction
- java.lang.Object
-
- me.hsgamer.bettergui.api.action.BaseAction
-
- All Implemented Interfaces:
BiConsumer<UUID,BatchRunnable.Process>,Action,MenuElement,ProcessApplier
- Direct Known Subclasses:
BroadcastAction,CommandAction,ConsoleAction,DelayAction,OpenMenuAction,PermissionAction,SoundAction,TellAction
public abstract class BaseAction extends Object implements Action
The base action
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseAction(ActionBuilder.Input input)Create a new action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenugetMenu()Get the menu containing the elementprotected StringgetReplacedString(UUID uuid)Get the replaced stringprotected booleanshouldBeTrimmed()Check if the string should be trimmed-
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
-
BaseAction
protected BaseAction(ActionBuilder.Input input)
Create a new action- Parameters:
input- the input
-
-
Method Detail
-
getReplacedString
protected String getReplacedString(UUID uuid)
Get the replaced string- Parameters:
uuid- the unique id- Returns:
- the replaced string
-
shouldBeTrimmed
protected boolean shouldBeTrimmed()
Check if the string should be trimmed- Returns:
- true if it should
-
getMenu
public Menu getMenu()
Description copied from interface:MenuElementGet the menu containing the element- Specified by:
getMenuin interfaceMenuElement- Returns:
- the menu
-
-