Uses of Class
de.marcely.bedwars.tools.ExecutionChain
Package
Description
Various helper classes that can be used to make life a lot easier.
-
Uses of ExecutionChain in de.marcely.bedwars.tools
Modifier and TypeMethodDescriptionExecutionChain.async()
Runs the upcoming chain in Bukkit's async thread-pool.ExecutionChain.asyncLater
(long ticks) Runs the upcoming chain in Bukkit's async thread-pool after a certain amount of ticks.protected ExecutionChain
ExecutionChain.chain
(ThrowingConsumer<Runnable> runn) Set the error handler for all the tasks in the chain.static ExecutionChain
Initializes the chain.ExecutionChain.run()
Runs the chain of tasks.ExecutionChain.sync()
Synchronizes the upcoming chain with the main thread.ExecutionChain.syncLater
(long ticks) Synchronizes the upcoming chain with the main thread after a certain amount of ticks.Adds a task to the chain that will be executed after the one before.<T> ExecutionChain
ExecutionChain.thenConsumer
(ThrowingConsumer<Consumer<T>> consumer, ThrowingConsumer<T> handler) Adds a consumer-task that is dependant on a future arrival of an object.ExecutionChain.thenLoose
(ThrowingBiConsumer<Runnable, Consumer<Exception>> looseRunn) Execute a task whose finish might not be instant.ExecutionChain.thenThrowing
(ThrowingRunnable runn) Adds a task to the chain that will be executed after the one before.