Class ActionTrigger
-
- All Implemented Interfaces:
public class ActionTrigger
-
-
Field Summary
Fields Modifier and Type Field Description public final BaseActionManager
actionManager
public final String
type
public Action
actions
public Action
async
public Action
sync
-
Constructor Summary
Constructors Constructor Description ActionTrigger(BaseActionManager actionManager, String type, ConfigurationSection config)
ActionTrigger(BaseActionManager actionManager, String type, Action actions)
-
Method Summary
Modifier and Type Method Description BaseActionManager
getActionManager()
String
getType()
Action
getActions()
void
setActions(@NonNull() Action actions)
Action
getAsync()
void
setAsync(@NonNull() Action async)
Action
getSync()
void
setSync(@NonNull() Action sync)
CompletableFuture<ActionResult>
run(@NonNull() ActionContext context)
void
async(@NonNull() ActionContext context)
void
sync(@NonNull() ActionContext context)
-
-
Constructor Detail
-
ActionTrigger
ActionTrigger(BaseActionManager actionManager, String type, ConfigurationSection config)
-
ActionTrigger
ActionTrigger(BaseActionManager actionManager, String type, Action actions)
-
-
Method Detail
-
getActionManager
@NonNull() BaseActionManager getActionManager()
-
getActions
@NonNull() Action getActions()
-
setActions
void setActions(@NonNull() Action actions)
-
run
@NonNull() CompletableFuture<ActionResult> run(@NonNull() ActionContext context)
-
async
void async(@NonNull() ActionContext context)
-
sync
void sync(@NonNull() ActionContext context)
-
-
-
-