Interface RawResultSupplier<T>

Type Parameters:
T - - The object type of the command argument.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RawResultSupplier<T>
The work of this interface is similar to that of the Supplier interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(CommandCause cause, String[] args)
    Retrieves an instance of the appropriate type.
  • Method Details

    • get

      Optional<T> get(CommandCause cause, String[] args)
      Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
      Depending on the conditions, a empty return is allowed.