Package org.geysermc.floodgate.util
Class BedrockData
java.lang.Object
org.geysermc.floodgate.util.BedrockData
- All Implemented Interfaces:
Cloneable
This class contains the raw data send by Geyser to Floodgate or from Floodgate to Floodgate. This
class is only used internally, and you should look at FloodgatePlayer instead (FloodgatePlayer is
present in the API module of the Floodgate repo)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclone()static BedrockDatafromString(String data) intintintgetIp()intintgetXuid()booleanbooleanstatic BedrockDataof(String version, String username, String xuid, int deviceOs, String languageCode, int uiProfile, int inputMode, String ip, int subscribeId, String verifyCode) static BedrockDataof(String version, String username, String xuid, int deviceOs, String languageCode, int uiProfile, int inputMode, String ip, LinkedPlayer linkedPlayer, boolean fromProxy, int subscribeId, String verifyCode) toString()
-
Field Details
-
EXPECTED_LENGTH
public static final int EXPECTED_LENGTH- See Also:
-
-
Method Details
-
of
public static BedrockData of(String version, String username, String xuid, int deviceOs, String languageCode, int uiProfile, int inputMode, String ip, LinkedPlayer linkedPlayer, boolean fromProxy, int subscribeId, String verifyCode) -
of
-
fromString
-
hasPlayerLink
public boolean hasPlayerLink() -
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getVersion
-
getUsername
-
getXuid
-
getDeviceOs
public int getDeviceOs() -
getLanguageCode
-
getUiProfile
public int getUiProfile() -
getInputMode
public int getInputMode() -
getIp
-
getLinkedPlayer
-
isFromProxy
public boolean isFromProxy() -
getSubscribeId
public int getSubscribeId() -
getVerifyCode
-
getDataLength
public int getDataLength()
-