Interface DefaultValue.DefaultValueProvider<C,T>

Enclosing interface:
DefaultValue<C,T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@API(status=STABLE) @FunctionalInterface public static interface DefaultValue.DefaultValueProvider<C,T>
  • Method Details

    • evaluateDefault

      @NonNull T evaluateDefault(@NonNull CommandContext<C> context)
      Evaluates the default value for the given context.
      Parameters:
      context - the context
      Returns:
      the default value