Class ReturnableTrigger<T>

All Implemented Interfaces:
Debuggable, ReturnHandler<T>

public class ReturnableTrigger<T> extends Trigger implements ReturnHandler<T>
  • Constructor Details

  • Method Details

    • returnValues

      public void returnValues(org.bukkit.event.Event event, Expression<? extends T> value)
      Description copied from interface: ReturnHandler
      Called when EffReturn is executed
      Specified by:
      returnValues in interface ReturnHandler<T>
      Parameters:
      event - the event providing context
      value - an expression representing the value(s) to return
    • isSingleReturnValue

      public boolean isSingleReturnValue()
      Specified by:
      isSingleReturnValue in interface ReturnHandler<T>
      Returns:
      whether this return handler may accept multiple return values
    • returnValueType

      @Nullable public @Nullable Class<? extends T> returnValueType()
      Description copied from interface: ReturnHandler
      The return type of this return handler, or null if it can't accept return values in this context (e.g. a function without a return type).
      Specified by:
      returnValueType in interface ReturnHandler<T>
      Returns:
      the return type