Class Effect

All Implemented Interfaces:
Debuggable, SyntaxElement
Direct Known Subclasses:
AsyncEffect, EffectSectionEffect

public abstract class Effect extends Statement
An effect which is unconditionally executed when reached, and execution will usually continue with the next item of the trigger after this effect is executed (the stop effect for example stops the trigger, i.e. nothing else will be executed after it)
See Also:
  • Constructor Details

    • Effect

      protected Effect()
  • Method Details

    • execute

      protected abstract void execute(org.bukkit.event.Event event)
      Executes this effect.
      event - The event with which this effect will be executed
    • run

      public final boolean run(org.bukkit.event.Event event)
      Description copied from class: TriggerItem
      Executes this item.
      Specified by:
      run in class TriggerItem
      event - The event to run this item with
      True if the next item should be run, or false for the item following this item's parent.
    • parse

      public static @Nullable Effect parse(String input, @Nullable String defaultError)