Class CacheableProfileable
java.lang.Object
com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
- All Implemented Interfaces:
Profileable
- Direct Known Subclasses:
TimedCacheableProfileable
Any
Profileable that can have its results cached.
This class should not be used directly.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
Profileable.GameProfileProfileable, Profileable.PlayerProfileable, Profileable.StringProfileable, Profileable.UsernameProfileable, Profileable.UUIDProfileable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.mojang.authlib.GameProfileThis method should not be used directly unless you know what you're doing.protected abstract @NotNull com.mojang.authlib.GameProfilefinal booleanprotected booleanhasExpired(boolean renew) final StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
getDisposableProfile, getProfileValue, test, transform
-
Field Details
-
cache
protected com.mojang.authlib.GameProfile cache -
lastError
-
-
Constructor Details
-
CacheableProfileable
public CacheableProfileable()
-
-
Method Details
-
getProfile
public final com.mojang.authlib.GameProfile getProfile()Description copied from interface:ProfileableThis 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:
getProfilein interfaceProfileable- 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 forProfileContainer).
-
hasExpired
public final boolean hasExpired()- Returns:
- true if this profile hasn't been cached yet or the cache is expired.
-
hasExpired
protected boolean hasExpired(boolean renew) -
getProfile0
@NotNull protected abstract @NotNull com.mojang.authlib.GameProfile getProfile0() -
toString
-