public interface FloodgateApi
Modifier and Type | Method and Description |
---|---|
UUID |
createJavaPlayerId(long xuid)
Create a valid Java player uuid of a xuid
|
default FloodgateEventBus |
getEventBus() |
CompletableFuture<String> |
getGamertagFor(long xuid)
Get the gamertag of the user that has the given xuid.
|
static FloodgateApi |
getInstance()
Returns the Floodgate API instance.
|
FloodgatePlayer |
getPlayer(UUID uuid)
Get info about the given Bedrock player
|
int |
getPlayerCount()
Returns the number of Floodgate players who are currently online.
|
default PlayerLink |
getPlayerLink()
Returns the instance that manages all the linking.
|
String |
getPlayerPrefix()
Returns the character(s) that will be added in front of a Bedrock player's name to prevent
username duplicates.
|
Collection<FloodgatePlayer> |
getPlayers()
Returns all the online Floodgate players.
|
default CompletableFuture<UUID> |
getUuidFor(String gamertag)
Get the xuid of the player that has the given gamertag.
|
CompletableFuture<Long> |
getXuidFor(String gamertag)
Get the xuid of the user that has the given gamertag.
|
boolean |
isFloodgateId(UUID uuid)
Checks if the uuid of the player has the
createJavaPlayerId(long) format. |
boolean |
isFloodgatePlayer(UUID uuid)
Method to determine if the given online player is a bedrock player
|
boolean |
sendForm(UUID uuid,
org.geysermc.cumulus.form.Form form) |
boolean |
sendForm(UUID uuid,
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.
|
boolean |
sendForm(UUID uuid,
org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder) |
boolean |
sendForm(UUID uuid,
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.
|
boolean |
transferPlayer(UUID uuid,
String address,
int port) |
Unsafe |
unsafe() |
static FloodgateApi getInstance()
String getPlayerPrefix()
Collection<FloodgatePlayer> getPlayers()
int getPlayerCount()
boolean isFloodgatePlayer(UUID uuid)
uuid
- The uuid of the online playerFloodgatePlayer getPlayer(UUID uuid)
uuid
- the uuid of the online Bedrock playerUUID createJavaPlayerId(long xuid)
xuid
- the xuid that should be convertedboolean isFloodgateId(UUID uuid)
createJavaPlayerId(long)
format. This
method can't validate a linked player uuid, since that doesn't equal the format. Use
isFloodgatePlayer(UUID)
if you want to include linked accounts.uuid
- the uuid to checkboolean sendForm(UUID uuid, org.geysermc.cumulus.form.Form form)
boolean sendForm(UUID uuid, org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)
@Deprecated boolean sendForm(UUID uuid, org.geysermc.cumulus.Form<?> form)
@Deprecated boolean sendForm(UUID uuid, org.geysermc.cumulus.util.FormBuilder<?,?> formBuilder)
CompletableFuture<Long> getXuidFor(String gamertag)
gamertag
- the gamertag of the playerdefault CompletableFuture<UUID> getUuidFor(String gamertag)
getXuidFor(String)
except that this method will return the xuid in Floodgate uuid
format instead of just a longgamertag
- the gamertag of the playerCompletableFuture<String> getGamertagFor(long xuid)
xuid
- the gamertag of the playerdefault FloodgateEventBus getEventBus()
default PlayerLink getPlayerLink()
Unsafe unsafe()