Class BedrockData

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class BedrockData
    extends java.lang.Object
    implements java.lang.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)
    • Method Detail

      • of

        public static BedrockData of​(java.lang.String version,
                                     java.lang.String username,
                                     java.lang.String xuid,
                                     int deviceOs,
                                     java.lang.String languageCode,
                                     int uiProfile,
                                     int inputMode,
                                     java.lang.String ip,
                                     LinkedPlayer linkedPlayer,
                                     boolean fromProxy,
                                     int subscribeId,
                                     java.lang.String verifyCode)
      • of

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

        public static BedrockData fromString​(java.lang.String data)
      • hasPlayerLink

        public boolean hasPlayerLink()
      • toString

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

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

        public java.lang.String getVersion()
      • getUsername

        public java.lang.String getUsername()
      • getXuid

        public java.lang.String getXuid()
      • getDeviceOs

        public int getDeviceOs()
      • getLanguageCode

        public java.lang.String getLanguageCode()
      • getUiProfile

        public int getUiProfile()
      • getInputMode

        public int getInputMode()
      • getIp

        public java.lang.String getIp()
      • isFromProxy

        public boolean isFromProxy()
      • getSubscribeId

        public int getSubscribeId()
      • getVerifyCode

        public java.lang.String getVerifyCode()
      • getDataLength

        public int getDataLength()