public interface FloodgatePlayer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
addProperty(PropertyKey key,
Object value)
Deprecated.
|
<T> T |
addProperty(String key,
Object value)
Deprecated.
|
default <T extends FloodgatePlayer> |
as(Class<T> clazz)
Casts the FloodgatePlayer instance to a class that extends FloodgatePlayer.
|
UUID |
getCorrectUniqueId()
Returns the uuid that the server will use as uuid of that player.
|
String |
getCorrectUsername()
Returns the username the server will as username for that player.
|
org.geysermc.floodgate.util.DeviceOs |
getDeviceOs()
Returns the Operating System of the Bedrock client
|
org.geysermc.floodgate.util.InputMode |
getInputMode()
Returns the Input Mode of the Bedrock client
|
UUID |
getJavaUniqueId()
Returns the uuid that will be used as UUID on the server.
Note that this field is not used when the player is a LinkedPlayer |
String |
getJavaUsername()
Returns the Bedrock username that will be used as username on the server.
|
String |
getLanguageCode()
Returns the language code of the Bedrock client
|
org.geysermc.floodgate.util.LinkedPlayer |
getLinkedPlayer()
Returns the LinkedPlayer object if the player is linked to a Java account.
|
<T> T |
getProperty(PropertyKey key)
Deprecated.
|
<T> T |
getProperty(String key)
Deprecated.
|
org.geysermc.floodgate.util.UiProfile |
getUiProfile()
Returns the User Interface Profile of the Bedrock client
|
String |
getUsername()
Returns the real username of the Bedrock client.
|
String |
getVersion()
Returns the version of the Bedrock client
|
String |
getXuid()
Returns the Xbox Unique Identifier of the Bedrock client
|
boolean |
hasProperty(PropertyKey key)
Deprecated.
|
boolean |
hasProperty(String key)
Deprecated.
|
boolean |
isFromProxy()
Returns if the Floodgate player is connected through a proxy
|
boolean |
isLinked()
Returns true if the player is linked to a Java account
|
<T> T |
removeProperty(PropertyKey key)
Deprecated.
|
<T> T |
removeProperty(String key)
Deprecated.
|
default boolean |
sendForm(org.geysermc.cumulus.form.Form form) |
default boolean |
sendForm(org.geysermc.cumulus.Form<?> form)
Deprecated.
since Cumulus 1.1 and will be removed when Cumulus 2.0 releases. Please use the
new form classes instead.
|
default boolean |
sendForm(org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder) |
default boolean |
sendForm(org.geysermc.cumulus.util.FormBuilder<?,?> formBuilder)
Deprecated.
since Cumulus 1.1 and will be removed when Cumulus 2.0 releases. Please use the
new form classes instead.
|
default boolean |
transfer(String address,
int port) |
String getJavaUsername()
LinkedPlayerUUID getJavaUniqueId()
LinkedPlayerUUID getCorrectUniqueId()
getJavaUniqueId() when not linked or LinkedPlayer.getJavaUniqueId() when
linked.String getCorrectUsername()
getJavaUsername() when not linked or LinkedPlayer.getJavaUsername() when
linked.String getVersion()
String getUsername()
String getXuid()
org.geysermc.floodgate.util.DeviceOs getDeviceOs()
String getLanguageCode()
org.geysermc.floodgate.util.UiProfile getUiProfile()
org.geysermc.floodgate.util.InputMode getInputMode()
boolean isFromProxy()
org.geysermc.floodgate.util.LinkedPlayer getLinkedPlayer()
boolean isLinked()
default boolean sendForm(org.geysermc.cumulus.form.Form form)
default boolean sendForm(org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)
@Deprecated default boolean sendForm(org.geysermc.cumulus.Form<?> form)
@Deprecated default boolean sendForm(org.geysermc.cumulus.util.FormBuilder<?,?> formBuilder)
default boolean transfer(String address, int port)
@Deprecated boolean hasProperty(PropertyKey key)
@Deprecated boolean hasProperty(String key)
@Deprecated <T> T getProperty(PropertyKey key)
@Deprecated <T> T getProperty(String key)
@Deprecated <T> T removeProperty(PropertyKey key)
@Deprecated <T> T removeProperty(String key)
@Deprecated <T> T addProperty(PropertyKey key, Object value)
@Deprecated <T> T addProperty(String key, Object value)
default <T extends FloodgatePlayer> T as(Class<T> clazz)
T - The instance to cast to.ClassCastException - when it can't cast the instance to the given class