Class TransformableProfile

java.lang.Object
com.cryptomorin.xseries.profiles.objects.transformer.TransformableProfile
All Implemented Interfaces:
Profileable

public final class TransformableProfile extends Object implements Profileable
  • Constructor Details

  • Method Details

    • transform

      public Profileable transform(ProfileTransformer... transformers)
      Description copied from interface: Profileable
      Adds transformer (read ProfileTransformer) information to a copied version of this profile (so it doesn't affect this instance).

      Profiles are copied before being transformed, so the main cache remains intact but the result of transformed profiles are never cached.

      Specified by:
      transform in interface Profileable
      Parameters:
      transformers - a list of transformers to apply in order once Profileable.getProfile() is called.
    • getProfile

      public 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).