Class ProfileContainer.ItemStackProfileContainer
java.lang.Object
com.cryptomorin.xseries.profiles.objects.ProfileContainer<org.bukkit.inventory.ItemStack>
com.cryptomorin.xseries.profiles.objects.ProfileContainer.ItemStackProfileContainer
- All Implemented Interfaces:
Profileable
- Enclosing class:
ProfileContainer<T>
public static final class ProfileContainer.ItemStackProfileContainer
extends ProfileContainer<org.bukkit.inventory.ItemStack>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cryptomorin.xseries.profiles.objects.ProfileContainer
ProfileContainer.BlockProfileContainer, ProfileContainer.BlockStateProfileContainer, ProfileContainer.ItemMetaProfileContainer, ProfileContainer.ItemStackProfileContainerNested 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.ItemStackcom.mojang.authlib.GameProfileThis method should not be used directly unless you know what you're doing.voidsetProfile(com.mojang.authlib.GameProfile profile) Methods inherited from class com.cryptomorin.xseries.profiles.objects.ProfileContainer
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, getProfileValue, transform
-
Constructor Details
-
ItemStackProfileContainer
public ItemStackProfileContainer(org.bukkit.inventory.ItemStack itemStack)
-
-
Method Details
-
setProfile
public void setProfile(com.mojang.authlib.GameProfile profile) - Specified by:
setProfilein classProfileContainer<org.bukkit.inventory.ItemStack>
-
getObject
public org.bukkit.inventory.ItemStack getObject()- Specified by:
getObjectin classProfileContainer<org.bukkit.inventory.ItemStack>
-
getProfile
public com.mojang.authlib.GameProfile 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.
-