Clarify boolean of connect callback
This commit is contained in:
parent
5ef5dd2c09
commit
a12bb4cead
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user