Class BedrockData

java.lang.Object
org.geysermc.floodgate.util.BedrockData
All Implemented Interfaces:
Cloneable

public final class BedrockData extends Object implements 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 Details

  • 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

      public static BedrockData of(String version, String username, String xuid, int deviceOs, String languageCode, int uiProfile, int inputMode, String ip, int subscribeId, String verifyCode)
    • fromString

      public static BedrockData fromString(String data)
    • hasPlayerLink

      public boolean hasPlayerLink()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public BedrockData clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getVersion

      public String getVersion()
    • getUsername

      public String getUsername()
    • getXuid

      public String getXuid()
    • getDeviceOs

      public int getDeviceOs()
    • getLanguageCode

      public String getLanguageCode()
    • getUiProfile

      public int getUiProfile()
    • getInputMode

      public int getInputMode()
    • getIp

      public String getIp()
    • getLinkedPlayer

      public LinkedPlayer getLinkedPlayer()
    • isFromProxy

      public boolean isFromProxy()
    • getSubscribeId

      public int getSubscribeId()
    • getVerifyCode

      public String getVerifyCode()
    • getDataLength

      public int getDataLength()