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

public abstract class MultiAction extends Action

MultiAction

This class represents an action, that has actions inside to execute. All multi-actions have piston as additional block.
Since:
5.0
Version:
5.7
Author:
McChicken Studio
See Also:
  • Constructor Details

    • MultiAction

      public MultiAction(Executor executor, Target target, int x, Arguments args, List<Action> actions)
      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

      public final void prepareAndExecute(@NotNull @NotNull ActionsHandler handler)
      Description copied from class: Action
      Prepares action for executing, sets handler and event, and executes action with target.
      Overrides:
      prepareAndExecute in class Action
      Parameters:
      handler - ActionsHandler that stores event data and temporary variables.
    • executeActions

      public final void executeActions()
      Executes actions in new actions handler.
    • getActions

      public List<Action> getActions()