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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
static BedrockData
fromString(String data)
boolean
static BedrockData
of(String version, String username, String xuid, int deviceOs, String languageCode, int uiProfile, int inputMode, String ip, int subscribeId, String verifyCode)
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)
toString()
-
Field Details
-
EXPECTED_LENGTH
public static final int EXPECTED_LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
BedrockData
public BedrockData()
-
-
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:
clone
in classObject
- Throws:
CloneNotSupportedException
-