Class RepeatAction

All Implemented Interfaces:
CodingBlock
Direct Known Subclasses:
RepeatAlwaysAction, RepeatForBlocksAction, RepeatForEachAction, RepeatForEntryAction, RepeatForLoopAction, RepeatWhileConditionAction, RepeatWhileConditionNotAction

public abstract class RepeatAction extends MultiAction

RepeatAction

This class represents a repeat action, that will execute actions for many times while condition is met.
  • Constructor Details

  • Method Details

    • execute

      protected void execute(org.bukkit.entity.Entity entity)
      Description copied from class: Action
      Executes action with specified entity.
      Specified by:
      execute in class Action
      Parameters:
      entity - Entity to execute action.
    • repeat

      public void repeat()
    • increaseCalls

      public void increaseCalls()
      Increases call by 1 and checks limits.
    • setMustStop

      public void setMustStop(boolean mustStop)
      Sets whether repeat action should stop repeating itself.
      Parameters:
      mustStop - true - stop repeater, false - continue.
    • checkCanContinue

      public abstract boolean checkCanContinue()
      Checks whether repeat action can continue repeating and executing the same actions.
      Returns:
      true - can continue and execute actions, false - stop repeater.
    • getActionCategory

      @NotNull public @NotNull ActionCategory getActionCategory()
      Description copied from class: Action
      Returns category of action, that contains information about action: glass pane materials, block materials.
      Specified by:
      getActionCategory in class Action
      Returns:
      Category of action.