Class MultiAction
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.coding.blocks.actions.MultiAction
- All Implemented Interfaces:
CodingBlock
- Direct Known Subclasses:
ControllerAction,RepeatAction
MultiAction
This class represents an action, that has actions inside to execute. All multi-actions have piston as additional block.- Since:
- 5.0
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidExecutes actions in new actions handler.final voidprepareAndExecute(@NotNull ActionsHandler handler) Prepares action for executing, sets handler and event, and executes action with target.Methods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
execute, getActionCategory, getActionType, getArguments, getArgumentsList, getEntitiesByNameOrUUID, getEntity, getEntityByNameOrUUID, getEvent, getExecutor, getHandler, getPlanet, getPlayersByNameOrUUID, getTarget, getTargets, getWorld, getX, getY, getZ, setEntity, setEvent, setHandler, setVarValue
-
Constructor Details
-
MultiAction
Creates MultiAction, that will execute actions inside.- Parameters:
executor- Executor, from which this action will be executed.target- Target, that will execute action.x- X Coordinate of coding block in developer's world.args- Arguments for action.actions- Actions, that will be executed with this action.
-
-
Method Details
-
prepareAndExecute
Description copied from class:ActionPrepares action for executing, sets handler and event, and executes action with target.- Overrides:
prepareAndExecutein classAction- Parameters:
handler- ActionsHandler that stores event data and temporary variables.
-
executeActions
public final void executeActions()Executes actions in new actions handler. -
getActions
-