@Deprecated public interface HandshakeData
| Modifier and Type | Method and Description |
|---|---|
org.geysermc.floodgate.util.BedrockData |
getBedrockData()
Deprecated.
Returns the decrypted BedrockData sent by Geyser or null if the player isn't a Floodgate
player.
|
io.netty.channel.Channel |
getChannel()
Deprecated.
Returns the Channel holding the connection between the client and the server.
|
UUID |
getCorrectUniqueId()
Deprecated.
|
String |
getCorrectUsername()
Deprecated.
|
String |
getDisconnectReason()
Deprecated.
Returns the reason to disconnect the current player.
|
String |
getHostname()
Deprecated.
Returns the hostname used in the handshake packet.
|
String |
getIp()
Deprecated.
Returns the IP address of the client.
|
UUID |
getJavaUniqueId()
Deprecated.
|
String |
getJavaUsername()
Deprecated.
|
org.geysermc.floodgate.util.LinkedPlayer |
getLinkedPlayer()
Deprecated.
Returns the linked account associated with the client or null if the player isn't linked or
not a Floodgate player.
|
boolean |
isFloodgatePlayer()
Deprecated.
Returns true if the given player is a Floodgate player, false otherwise.
|
void |
setDisconnectReason(String reason)
Deprecated.
Set the reason to disconnect the current player.
|
void |
setHostname(String hostname)
Deprecated.
Set the hostname of the handshake packet.
|
void |
setIp(String address)
Deprecated.
Set the IP address of the connected client.
|
void |
setLinkedPlayer(org.geysermc.floodgate.util.LinkedPlayer player)
Deprecated.
Set the LinkedPlayer.
|
default boolean |
shouldDisconnect()
Deprecated.
Returns if the player should be disconnected
|
io.netty.channel.Channel getChannel()
boolean isFloodgatePlayer()
org.geysermc.floodgate.util.BedrockData getBedrockData()
String getJavaUsername()
String getCorrectUsername()
UUID getJavaUniqueId()
UUID getCorrectUniqueId()
org.geysermc.floodgate.util.LinkedPlayer getLinkedPlayer()
void setLinkedPlayer(org.geysermc.floodgate.util.LinkedPlayer player)
player - the player to use as linkString getHostname()
void setHostname(String hostname)
hostname - the new hostnameString getIp()
BedrockData.getIp() when
BedrockData isn't null, or null if BedrockData is null. This method will return the changed
IP if it has been changed using setIp(String)void setIp(String address)
address - the IP address of the clientString getDisconnectReason()
void setDisconnectReason(String reason)
reason - the reason to disconnectdefault boolean shouldDisconnect()