Package org.bukkit.inventory.meta
Interface SkullMeta
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
Represents a skull that can have an owner.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getOwner()
Deprecated.Gets the owner of the skull.If the skull has an owner, perhasOwner()
, return the ownersPlayerProfile
boolean
hasOwner()
Checks to see if the skull has an owner.boolean
Deprecated.boolean
setOwningPlayer(@Nullable OfflinePlayer owner)
Sets the owner of the skull.void
setPlayerProfile(@Nullable PlayerProfile profile)
Sets this skull to use the supplied Player Profile, which can include textures already prefilled.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
getOwner
Deprecated.seegetOwningPlayer()
.Gets the owner of the skull.- Returns:
- the owner if the skull
-
hasOwner
boolean hasOwner()Checks to see if the skull has an owner.- Returns:
- true if the skull has an owner
-
setOwner
Deprecated.Sets the owner of the skull.- Parameters:
owner
- the new owner of the skull- Returns:
- true if the owner was successfully set
-
setPlayerProfile
Sets this skull to use the supplied Player Profile, which can include textures already prefilled.- Parameters:
profile
- The profile to set this Skull to use, or null to clear owner
-
getPlayerProfile
If the skull has an owner, perhasOwner()
, return the ownersPlayerProfile
- Returns:
- The profile of the owner, if set
-
getOwningPlayer
Gets the owner of the skull.- Returns:
- the owner if the skull
-
setOwningPlayer
Sets the owner of the skull.Plugins should check that hasOwner() returns true before calling this plugin.
- Parameters:
owner
- the new owner of the skull- Returns:
- true if the owner was successfully set
-
clone
-
getOwningPlayer()
.