Package me.hsgamer.bettergui.api.action
Class BaseAction
- java.lang.Object
-
- me.hsgamer.bettergui.api.action.BaseAction
-
- All Implemented Interfaces:
BiConsumer<UUID,TaskProcess>,Action,MenuElement,ProcessApplier
- Direct Known Subclasses:
BroadcastAction,CommandAction,ConsoleAction,DelayAction,OpenMenuAction,SoundAction,TellAction
public abstract class BaseAction extends Object implements Action
The base action
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionBuilder.Inputinput
-
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 string-
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
-
-
-
-
Field Detail
-
input
protected final ActionBuilder.Input input
-
-
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
-
getMenu
public Menu getMenu()
Description copied from interface:MenuElementGet the menu containing the element- Specified by:
getMenuin interfaceMenuElement- Returns:
- the menu
-
-