Package com.sk89q.worldedit.command.util
Class AsyncCommandBuilder<T>
java.lang.Object
com.sk89q.worldedit.command.util.AsyncCommandBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<T> buildAndExec
(com.google.common.util.concurrent.ListeningExecutorService executor) onFailure
(com.sk89q.worldedit.util.formatting.text.Component message, ExceptionConverter exceptionConverter) onFailure
(String message, ExceptionConverter exceptionConverter) registerWithSupervisor
(Supervisor supervisor, String description) sendMessageAfterDelay
(com.sk89q.worldedit.util.formatting.text.Component message) Deprecated.sendMessageAfterDelay
(String message) Deprecated.setDelayMessage
(com.sk89q.worldedit.util.formatting.text.Component message) setWorkingMessage
(com.sk89q.worldedit.util.formatting.text.Component message) static <T> AsyncCommandBuilder
<T>
-
Method Details
-
wrap
-
registerWithSupervisor
-
sendMessageAfterDelay
Deprecated. -
sendMessageAfterDelay
@Deprecated public AsyncCommandBuilder<T> sendMessageAfterDelay(com.sk89q.worldedit.util.formatting.text.Component message) Deprecated. -
setDelayMessage
public AsyncCommandBuilder<T> setDelayMessage(com.sk89q.worldedit.util.formatting.text.Component message) -
setWorkingMessage
public AsyncCommandBuilder<T> setWorkingMessage(com.sk89q.worldedit.util.formatting.text.Component message) -
onSuccess
public AsyncCommandBuilder<T> onSuccess(@Nullable com.sk89q.worldedit.util.formatting.text.Component message, @Nullable Consumer<T> consumer) -
onSuccess
-
onFailure
public AsyncCommandBuilder<T> onFailure(@Nullable com.sk89q.worldedit.util.formatting.text.Component message, @Nullable ExceptionConverter exceptionConverter) -
onFailure
public AsyncCommandBuilder<T> onFailure(@Nullable String message, @Nullable ExceptionConverter exceptionConverter) -
buildAndExec
public com.google.common.util.concurrent.ListenableFuture<T> buildAndExec(com.google.common.util.concurrent.ListeningExecutorService executor)
-