Class PlayerProfile


  • public final class PlayerProfile
    extends pro.gravit.launcher.serialize.stream.StreamObject
    • Nested Class Summary

      • Nested classes/interfaces inherited from class pro.gravit.launcher.serialize.stream.StreamObject

        pro.gravit.launcher.serialize.stream.StreamObject.Adapter<O extends pro.gravit.launcher.serialize.stream.StreamObject>
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerProfile​(java.util.UUID uuid, java.lang.String username, Texture skin, Texture cloak)  
      PlayerProfile​(pro.gravit.launcher.serialize.HInput input)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PlayerProfile newOfflineProfile​(java.lang.String username)  
      static java.util.UUID offlineUUID​(java.lang.String username)  
      void write​(pro.gravit.launcher.serialize.HOutput output)  
      • Methods inherited from class pro.gravit.launcher.serialize.stream.StreamObject

        write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • uuid

        public final java.util.UUID uuid
      • username

        public final java.lang.String username
      • cloak

        public final Texture cloak
    • Constructor Detail

      • PlayerProfile

        public PlayerProfile​(pro.gravit.launcher.serialize.HInput input)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • PlayerProfile

        public PlayerProfile​(java.util.UUID uuid,
                             java.lang.String username,
                             Texture skin,
                             Texture cloak)
    • Method Detail

      • newOfflineProfile

        public static PlayerProfile newOfflineProfile​(java.lang.String username)
      • offlineUUID

        public static java.util.UUID offlineUUID​(java.lang.String username)
      • write

        public void write​(pro.gravit.launcher.serialize.HOutput output)
                   throws java.io.IOException
        Specified by:
        write in class pro.gravit.launcher.serialize.stream.StreamObject
        Throws:
        java.io.IOException