Class ExecuteRandomActionAction
java.lang.Object
de.oliver.fancynpcs.api.actions.NpcAction
de.oliver.fancynpcs.api.actions.types.ExecuteRandomActionAction
The ExecuteRandomActionAction class represents an action that can be executed randomly by an NPC.
The ExecuteRandomActionAction class provides an implementation for the execute method, which executes a random action triggered by the given action trigger on the specified NPC and player. The execution of the action is based on the actions associated with the NPC's data for the given trigger.
-
Nested Class Summary
Nested classes/interfaces inherited from class NpcAction
NpcAction.NpcActionData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(@NotNull ActionExecutionContext context, String value) Executes a random action triggered by the given action trigger on the specified NPC and player.Methods inherited from class NpcAction
getName, requiresValue
-
Constructor Details
-
ExecuteRandomActionAction
public ExecuteRandomActionAction()
-
-
Method Details
-
execute
Executes a random action triggered by the given action trigger on the specified NPC and player.
-