mirror of https://github.com/FabricMC/yarn.git
Add javadocs for MessageListener
This commit is contained in:
parent
a6fe16a9cd
commit
e9f0cea6e7
|
@ -6,6 +6,18 @@ CLASS net/minecraft/class_3906 net/minecraft/util/thread/MessageListener
|
|||
ARG 0 name
|
||||
ARG 1 action
|
||||
METHOD method_17345 ask (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
|
||||
COMMENT Ask a message provider for a message.
|
||||
COMMENT
|
||||
COMMENT The {@link CompletableFuture} returned from this function will never complete exceptionally.
|
||||
COMMENT
|
||||
COMMENT @return CompletableFuture future that completes with the received message
|
||||
ARG 1 messageProvider
|
||||
METHOD method_27918 askFallible (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
|
||||
COMMENT Ask a falliable message provider for a message.
|
||||
COMMENT
|
||||
COMMENT The provider is given a MessageListener that accepts a {@link Either} representing either
|
||||
COMMENT a valid response (generic parameter Source) or an Exception, which decides whether the
|
||||
COMMENT future completes successfully or exceptionally.
|
||||
COMMENT
|
||||
COMMENT @return CompletableFuture that may either complete successfully or exceptionally
|
||||
ARG 1 messageProvider
|
||||
|
|
Loading…
Reference in New Issue