Interface DelayedCommandInputRequest.IFactory<T>

Type Parameters:
T - The type of data that is to be retrieved from the player
Enclosing class:
DelayedCommandInputRequest<T>

@AssistedFactory public static interface DelayedCommandInputRequest.IFactory<T>
The factory interface for creating DelayedCommandInputRequest instances.
  • Method Details

    • create

      DelayedCommandInputRequest<T> create(long timeout, ICommandSender commandSender, CommandDefinition commandDefinition, Function<T, CompletableFuture<?>> executorFunction, @Assisted @Nullable Supplier<String> initMessageSupplier, Class<T> inputClass, @Assisted @Nullable DelayedCommandInputRequest.ContextProvider contextSupplier)
      Parameters:
      timeout - The amount of time (in milliseconds) before this request times out.
      commandSender - The command sender who will provide the input.
      commandDefinition - The command definition for which input is being requested.
      executorFunction - The function to execute after retrieving the delayed input.
      initMessageSupplier - Supplier for the initialization message (can be null).
      inputClass - The class of the expected input object.
      contextSupplier - The context to include in the exception if the future completes exceptionally (can be null).
      Returns:
      A new DelayedCommandInputRequest instance.