Interface FloodgatePlayer
public interface FloodgatePlayer
-
Method Summary
Modifier and TypeMethodDescription<T> TaddProperty(String key, Object value) Deprecated.<T> TaddProperty(PropertyKey key, Object value) Deprecated.default <T extends FloodgatePlayer>
TCasts the FloodgatePlayer instance to a class that extends FloodgatePlayer.Returns the uuid that the server will use as uuid of that player.Returns the username the server will as username for that player.org.geysermc.floodgate.util.DeviceOsReturns the Operating System of the Bedrock clientorg.geysermc.floodgate.util.InputModeReturns the Input Mode of the Bedrock clientReturns the uuid that will be used as UUID on the server.
Note that this field is not used when the player is aLinkedPlayerReturns the Bedrock username that will be used as username on the server.Returns the language code of the Bedrock clientorg.geysermc.floodgate.util.LinkedPlayerReturns the LinkedPlayer object if the player is linked to a Java account.<T> TgetProperty(String key) Deprecated.<T> TgetProperty(PropertyKey key) Deprecated.org.geysermc.floodgate.util.UiProfileReturns the User Interface Profile of the Bedrock clientReturns the real username of the Bedrock client.Returns the version of the Bedrock clientgetXuid()Returns the Xbox Unique Identifier of the Bedrock clientbooleanhasProperty(String key) Deprecated.booleanhasProperty(PropertyKey key) Deprecated.booleanReturns if the Floodgate player is connected through a proxybooleanisLinked()Returns true if the player is linked to a Java account<T> TremoveProperty(String key) Deprecated.<T> TDeprecated.default booleansendForm(org.geysermc.cumulus.form.Form form) default booleansendForm(org.geysermc.cumulus.form.util.FormBuilder<?, ?, ?> formBuilder) default booleansendForm(org.geysermc.cumulus.Form<?> form) Deprecated.since Cumulus 1.1 and will be removed when Cumulus 2.0 releases.default booleansendForm(org.geysermc.cumulus.util.FormBuilder<?, ?> formBuilder) Deprecated.since Cumulus 1.1 and will be removed when Cumulus 2.0 releases.default boolean
-
Method Details
-
getJavaUsername
String getJavaUsername()Returns the Bedrock username that will be used as username on the server. This includes replace spaces (if enabled), username shortened and prefix appended.
Note that this field is not used when the player is aLinkedPlayer -
getJavaUniqueId
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 aLinkedPlayer -
getCorrectUniqueId
UUID getCorrectUniqueId()Returns the uuid that the server will use as uuid of that player. Will returngetJavaUniqueId()when not linked orLinkedPlayer.getJavaUniqueId()when linked. -
getCorrectUsername
String getCorrectUsername()Returns the username the server will as username for that player. Will returngetJavaUsername()when not linked orLinkedPlayer.getJavaUsername()when linked. -
getVersion
String getVersion()Returns the version of the Bedrock client -
getUsername
String getUsername()Returns the real username of the Bedrock client. This username doesn't have a prefix, spaces aren't replaced and the username hasn't been shortened. -
getXuid
String getXuid()Returns the Xbox Unique Identifier of the Bedrock client -
getDeviceOs
org.geysermc.floodgate.util.DeviceOs getDeviceOs()Returns the Operating System of the Bedrock client -
getLanguageCode
String getLanguageCode()Returns the language code of the Bedrock client -
getUiProfile
org.geysermc.floodgate.util.UiProfile getUiProfile()Returns the User Interface Profile of the Bedrock client -
getInputMode
org.geysermc.floodgate.util.InputMode getInputMode()Returns the Input Mode of the Bedrock client -
isFromProxy
boolean isFromProxy()Returns if the Floodgate player is connected through a proxy -
getLinkedPlayer
org.geysermc.floodgate.util.LinkedPlayer getLinkedPlayer()Returns the LinkedPlayer object if the player is linked to a Java account. -
isLinked
boolean isLinked()Returns true if the player is linked to a Java account -
sendForm
default boolean sendForm(org.geysermc.cumulus.form.Form form) -
sendForm
default boolean sendForm(org.geysermc.cumulus.form.util.FormBuilder<?, ?, ?> formBuilder) -
sendForm
Deprecated.since Cumulus 1.1 and will be removed when Cumulus 2.0 releases. Please use the new form classes instead. -
sendForm
Deprecated.since Cumulus 1.1 and will be removed when Cumulus 2.0 releases. Please use the new form classes instead. -
transfer
-
hasProperty
Deprecated. -
hasProperty
Deprecated. -
getProperty
Deprecated. -
getProperty
Deprecated. -
removeProperty
Deprecated. -
removeProperty
Deprecated. -
addProperty
Deprecated. -
addProperty
Deprecated. -
as
Casts the FloodgatePlayer instance to a class that extends FloodgatePlayer.- Type Parameters:
T- The instance to cast to.- Returns:
- The FloodgatePlayer casted to the given class
- Throws:
ClassCastException- when it can't cast the instance to the given class
-