Class Profileable.RawGameProfileProfileable

java.lang.Object
com.cryptomorin.xseries.profiles.objects.Profileable.RawGameProfileProfileable
All Implemented Interfaces:
Profileable
Enclosing interface:
Profileable

@Internal public static final class Profileable.RawGameProfileProfileable extends Object implements Profileable
  • Constructor Details

    • RawGameProfileProfileable

      public RawGameProfileProfileable(com.mojang.authlib.GameProfile profile)
  • Method Details

    • isReady

      public boolean isReady()
      Description copied from interface: Profileable
      Whether this profile has all the necessary information to construct its Profileable.getProfile() right away. When this method returns false, it means some kind of request has to be sent to Mojang servers in order to retrieve some information.

      Even if this method returns true, it doesn't necessarily mean that this profile has all information (textures, username, UUID, etc.) it merely means that it has all the information it needs in memory to compute its Profileable.getProfile() and doesn't need to a request any data using MinecraftClient.

      Specified by:
      isReady in interface Profileable
      See Also:
    • getProfile

      @NotNull public @NotNull @Unmodifiable com.mojang.authlib.GameProfile getProfile()
      Description copied from interface: Profileable
      This method should not be used directly unless you know what you're doing.

      The texture which might be cached. If any errors occur, the check may be re-evaluated. The cached values might also be re-evaluated due to expiration.

      Specified by:
      getProfile in interface Profileable
      Returns:
      the original profile (not cloned if possible) for an instance that's always guaranteed to be a copy you can use Profileable.getDisposableProfile() instead. Null if no profile is set (only happens for ProfileContainer).