Class Profileable.PlayerProfileable
java.lang.Object
com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
com.cryptomorin.xseries.profiles.objects.cache.TimedCacheableProfileable
com.cryptomorin.xseries.profiles.objects.Profileable.PlayerProfileable
- All Implemented Interfaces:
Profileable
- Enclosing interface:
Profileable
Do we need to support
PlayerProfile for hybrid server software
like Geyser or Mohist that might have their own caching system?-
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 inherited from class com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
cache, lastError -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.authlib.GameProfileA 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
expiresAfter, hasExpiredMethods inherited from class com.cryptomorin.xseries.profiles.objects.cache.CacheableProfileable
getProfile, hasExpired, 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, test, transform
-
Constructor Details
-
PlayerProfileable
public PlayerProfileable(org.bukkit.OfflinePlayer player)
-
-
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.
-
getProfile0
protected com.mojang.authlib.GameProfile getProfile0()- Specified by:
getProfile0in classCacheableProfileable
-