Class Profileable.StringProfileable
java.lang.Object
com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
com.cryptomorin.xseries.profiles.objects.cache.TimedCacheableProfileable
com.cryptomorin.xseries.profiles.objects.Profileable.StringProfileable
- All Implemented Interfaces:
Profileable
- Enclosing interface:
Profileable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
Profileable.DynamicGameProfileProfileable, Profileable.PlayerProfileable, Profileable.PlayerProfileProfileable, Profileable.RawGameProfileProfileable, Profileable.StringProfileable, Profileable.UsernameProfileable, Profileable.UUIDProfileable -
Field Summary
Fields inherited from class com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
cache, lastError -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.authlib.GameProfileprotected DurationThe amount of time the cached results of this profile can be used until it's re-evaluated.A string representation of theProfileable.getProfile()which is useful for data storage which can be serialized back usingProfileable.detect(String).Methods inherited from class com.cryptomorin.xseries.profiles.objects.cache.TimedCacheableProfileable
hasExpiredMethods inherited from class com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
getProfile, hasExpired, isReady, toStringMethods 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, prepare, test, transform
-
Constructor Details
-
StringProfileable
-
-
Method Details
-
getProfileValue
Description copied from interface:ProfileableA string representation of theProfileable.getProfile()which is useful for data storage which can be serialized back usingProfileable.detect(String).Note that in some cases this is the Base64 value of the textures property, but some may provide less verbose data when possible. Items and blocks can also provide compact data if their profile was built using
ProfileTransformer.includeOriginalValue().- Returns:
- null if
Profileable.getProfile()is null or the set profile doesn't have a texture property.
-
expiresAfter
Description copied from class:TimedCacheableProfileableThe amount of time the cached results of this profile can be used until it's re-evaluated. By default, it uses the internal cache's expiration date (6 hours). Negative durations should not be used.Duration.ZEROmeans that the cache never expires.- Overrides:
expiresAfterin classTimedCacheableProfileable
-
cacheProfile
protected com.mojang.authlib.GameProfile cacheProfile()- Specified by:
cacheProfilein classCacheableProfileable
-