Class ProfileTransformer.IncludeOriginalValue
java.lang.Object
com.cryptomorin.xseries.profiles.objects.transformer.ProfileTransformer.IncludeOriginalValue
- All Implemented Interfaces:
ProfileTransformer
- Enclosing interface:
ProfileTransformer
public static final class ProfileTransformer.IncludeOriginalValue
extends Object
implements ProfileTransformer
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cryptomorin.xseries.profiles.objects.transformer.ProfileTransformer
ProfileTransformer.IncludeOriginalValue, ProfileTransformer.MakeNotStackable, ProfileTransformer.RemoveMetadata -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the results of this transformation can be cached or not.static @Nullable StringgetOriginalValue(@NotNull com.mojang.authlib.GameProfile profile) com.mojang.authlib.GameProfiletransform(Profileable profileable, com.mojang.authlib.GameProfile profile) Transforms the given profile by the defined operations.
-
Field Details
-
PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
IncludeOriginalValue
public IncludeOriginalValue()
-
-
Method Details
-
getOriginalValue
@Nullable public static @Nullable String getOriginalValue(@NotNull @NotNull com.mojang.authlib.GameProfile profile) -
transform
public com.mojang.authlib.GameProfile transform(Profileable profileable, com.mojang.authlib.GameProfile profile) Description copied from interface:ProfileTransformerTransforms the given profile by the defined operations. The operations are applied on the same instance of the profile.- Specified by:
transformin interfaceProfileTransformer- Parameters:
profileable- the profileable which the firstprofileoriginated from.profile- the profile to apply the operations on.- Returns:
- may return the same or a new instance.
-
canBeCached
public boolean canBeCached()Description copied from interface:ProfileTransformerWhether the results of this transformation can be cached or not.- Specified by:
canBeCachedin interfaceProfileTransformer
-