Clarify boolean of connect callback

This commit is contained in:
md_5 2018-12-29 13:01:53 +11:00
parent 5ef5dd2c09
commit a12bb4cead

View File

@ -107,7 +107,7 @@ public interface ProxiedPlayer extends Connection, CommandSender
* @param target the new server to connect to * @param target the new server to connect to
* @param callback the method called when the connection is complete, or * @param callback the method called when the connection is complete, or
* when an exception is encountered. The boolean parameter denotes success * when an exception is encountered. The boolean parameter denotes success
* or failure. * (true) or failure (false).
*/ */
void connect(ServerInfo target, Callback<Boolean> callback); void connect(ServerInfo target, Callback<Boolean> callback);
@ -119,7 +119,7 @@ public interface ProxiedPlayer extends Connection, CommandSender
* @param target the new server to connect to * @param target the new server to connect to
* @param callback the method called when the connection is complete, or * @param callback the method called when the connection is complete, or
* when an exception is encountered. The boolean parameter denotes success * when an exception is encountered. The boolean parameter denotes success
* or failure. * (true) or failure (false).
* @param reason the reason for connecting to the new server * @param reason the reason for connecting to the new server
*/ */
void connect(ServerInfo target, Callback<Boolean> callback, ServerConnectEvent.Reason reason); void connect(ServerInfo target, Callback<Boolean> callback, ServerConnectEvent.Reason reason);