public interface PendingConnection extends Connection
Connection.Unsafe| Modifier and Type | Method and Description |
|---|---|
ListenerInfo |
getListener()
Get the listener that accepted this connection.
|
java.lang.String |
getName()
Get the requested username.
|
java.util.UUID |
getUniqueId()
Get this connection's UUID, if set.
|
java.lang.String |
getUUID()
Deprecated.
In favour of
getUniqueId() |
int |
getVersion()
Get the numerical client version of the player attempting to log in.
|
java.net.InetSocketAddress |
getVirtualHost()
Get the requested virtual host that the client tried to connect to.
|
boolean |
isLegacy()
Check if the client is using the older unsupported Minecraft protocol
used by Minecraft clients older than 1.7.
|
boolean |
isOnlineMode()
Get this connection's online mode.
|
void |
setOnlineMode(boolean onlineMode)
Set this connection's online mode.
|
void |
setUniqueId(java.util.UUID uuid)
Set the connection's uuid
|
disconnect, disconnect, disconnect, getAddress, isConnected, unsafejava.lang.String getName()
int getVersion()
java.net.InetSocketAddress getVirtualHost()
ListenerInfo getListener()
@Deprecated java.lang.String getUUID()
getUniqueId()java.util.UUID getUniqueId()
void setUniqueId(java.util.UUID uuid)
uuid - connection UUIDboolean isOnlineMode()
setOnlineMode(boolean) for a description of how this option
works.void setOnlineMode(boolean onlineMode)
onlineMode - statusboolean isLegacy()
Copyright © 2015-2018 WaterfallMC. All Rights Reserved.