Class ProfileContainer.ItemMetaProfileContainer
java.lang.Object
com.cryptomorin.xseries.profiles.objects.ProfileContainer<org.bukkit.inventory.meta.ItemMeta>
com.cryptomorin.xseries.profiles.objects.ProfileContainer.ItemMetaProfileContainer
- All Implemented Interfaces:
Profileable
- Enclosing class:
ProfileContainer<T>
public static final class ProfileContainer.ItemMetaProfileContainer
extends ProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cryptomorin.xseries.profiles.objects.ProfileContainer
ProfileContainer.BlockProfileContainer, ProfileContainer.BlockStateProfileContainer, ProfileContainer.ItemMetaProfileContainer, ProfileContainer.ItemStackProfileContainer
Nested classes/interfaces inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
Profileable.GameProfileProfileable, Profileable.PlayerProfileable, Profileable.StringProfileable, Profileable.UsernameProfileable, Profileable.UUIDProfileable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.meta.ItemMeta
com.mojang.authlib.GameProfile
This method should not be used directly unless you know what you're doing.void
setProfile
(com.mojang.authlib.GameProfile profile) Methods inherited from class com.cryptomorin.xseries.profiles.objects.ProfileContainer
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
getDisposableProfile, getProfileValue, test, transform
-
Constructor Details
-
ItemMetaProfileContainer
public ItemMetaProfileContainer(org.bukkit.inventory.meta.SkullMeta meta)
-
-
Method Details
-
setProfile
public void setProfile(com.mojang.authlib.GameProfile profile) - Specified by:
setProfile
in classProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
getObject
public org.bukkit.inventory.meta.ItemMeta getObject()- Specified by:
getObject
in classProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
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.
- 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
).
-