Interface Promise<T>

All Superinterfaces:
Future<T>
All Known Implementing Classes:
AbstractFoliaPromise, AbstractPromise, EntityPromise, GlobalPromise, LegacyPromise, RegionPromise

public interface Promise<T> extends Future<T>
  • Method Details

    • empty

      static <U> Promise<U> empty()
    • empty

      static <U> Promise<U> empty(org.bukkit.entity.Entity entity)
    • empty

      static <U> Promise<U> empty(org.bukkit.Location location)
    • start

      static Promise<Void> start()
    • start

      static Promise<Void> start(org.bukkit.entity.Entity entity)
    • start

      static Promise<Void> start(org.bukkit.Location location)
    • completed

      static <U> Promise<U> completed(@Nullable U value)
    • completed

      static <U> Promise<U> completed(org.bukkit.entity.Entity entity, @Nullable U value)
    • completed

      static <U> Promise<U> completed(org.bukkit.Location location, @Nullable U value)
    • supplyingSync

      static <U> Promise<U> supplyingSync(Supplier<U> supplier)
    • supplyingSync

      static <U> Promise<U> supplyingSync(org.bukkit.entity.Entity entity, Supplier<U> supplier)
    • supplyingSync

      static <U> Promise<U> supplyingSync(org.bukkit.Location location, Supplier<U> supplier)
    • supplyingSyncDelay

      static <U> Promise<U> supplyingSyncDelay(Supplier<U> supplier, int delay)
    • supplyingSyncDelay

      static <U> Promise<U> supplyingSyncDelay(org.bukkit.entity.Entity entity, Supplier<U> supplier, int delay)
    • supplyingSyncDelay

      static <U> Promise<U> supplyingSyncDelay(org.bukkit.Location location, Supplier<U> supplier, int delay)
    • supplyingAsync

      static <U> Promise<U> supplyingAsync(Supplier<U> supplier)
    • supplyingAsyncDelay

      static <U> Promise<U> supplyingAsyncDelay(Supplier<U> supplier, int delay)
    • runSync

      Promise<T> runSync(Runnable runnable)
    • runSyncDelay

      Promise<T> runSyncDelay(Runnable runnable, int delay)
    • runAsync

      Promise<T> runAsync(Runnable runnable)
    • runAsyncDelay

      Promise<T> runAsyncDelay(Runnable runnable, int delay)
    • supplySync

      Promise<T> supplySync(Supplier<T> supplier)
    • supplySyncDelay

      Promise<T> supplySyncDelay(Supplier<T> supplier, int delay)
    • supplyAsync

      Promise<T> supplyAsync(Supplier<T> supplier)
    • supplyAsyncDelay

      Promise<T> supplyAsyncDelay(Supplier<T> supplier, int delay)
    • thenRunSync

      default Promise<Void> thenRunSync(Runnable runnable)
    • thenRunSyncDelay

      default Promise<Void> thenRunSyncDelay(Runnable runnable, int delay)
    • thenRunAsync

      default Promise<Void> thenRunAsync(Runnable runnable)
    • thenRunAsyncDelay

      default Promise<Void> thenRunAsyncDelay(Runnable runnable, int delay)
    • thenApplySync

      <U> Promise<U> thenApplySync(Function<? super T,? extends U> function)
    • thenApplySyncDelay

      <U> Promise<U> thenApplySyncDelay(Function<? super T,? extends U> function, int delay)
    • thenApplyAsync

      <U> Promise<U> thenApplyAsync(Function<? super T,? extends U> function)
    • thenApplyAsyncDelay

      <U> Promise<U> thenApplyAsyncDelay(Function<? super T,? extends U> function, int delay)
    • thenAcceptSync

      default Promise<Void> thenAcceptSync(Consumer<? super T> consumer)
    • thenAcceptSyncDelay

      default Promise<Void> thenAcceptSyncDelay(Consumer<? super T> consumer, int delay)
    • thenAcceptAsync

      default Promise<Void> thenAcceptAsync(Consumer<? super T> consumer)
    • thenAcceptAsyncDelay

      default Promise<Void> thenAcceptAsyncDelay(Consumer<? super T> consumer, int delay)