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>
@Internal
public static final class ProfileContainer.ItemMetaProfileContainer
extends ProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
Nested Class Summary
Nested classes/interfaces inherited from class ProfileContainer
ProfileContainer.BlockProfileContainer, ProfileContainer.BlockStateProfileContainer, ProfileContainer.ItemMetaProfileContainer, ProfileContainer.ItemStackProfileContainer, ProfileContainer.PlayerContainerNested classes/interfaces inherited from interface Profileable
Profileable.DynamicGameProfileProfileable, Profileable.PlayerProfileable, Profileable.PlayerProfileProfileable, Profileable.RawGameProfileProfileable, Profileable.StringProfileable, Profileable.UsernameProfileable, Profileable.UUIDProfileable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.meta.ItemMetacom.cryptomorin.xseries.profiles.gameprofile.MojangGameProfileThis method should not be used directly unless you know what you're doing.voidsetProfile(@Nullable com.cryptomorin.xseries.profiles.gameprofile.MojangGameProfile profile) Methods inherited from class ProfileContainer
isReady, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Profileable
getDisposableProfile, getProfileValue, prepare, test, transform
-
Constructor Details
-
ItemMetaProfileContainer
public ItemMetaProfileContainer(org.bukkit.inventory.meta.SkullMeta meta)
-
-
Method Details
-
setProfile
public void setProfile(@Nullable @Nullable com.cryptomorin.xseries.profiles.gameprofile.MojangGameProfile profile) - Specified by:
setProfilein classProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
getObject
public org.bukkit.inventory.meta.ItemMeta getObject()- Specified by:
getObjectin classProfileContainer<org.bukkit.inventory.meta.ItemMeta>
-
getProfile
public com.cryptomorin.xseries.profiles.gameprofile.MojangGameProfile 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.
- 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).
-