Package org.bukkit.inventory.meta
Interface SkullMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
Represents a skull that can have an owner.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Gets the sound to play if the skull is placed on a note block.getOwner()Deprecated.Gets the profile of the player who owns the skull.Gets the owner of the skull.booleanhasOwner()Checks to see if the skull has an owner.voidsetNoteBlockSound(NamespacedKey noteBlockSound) Sets the sound to play if the skull is placed on a note block.booleanDeprecated.voidsetOwnerProfile(PlayerProfile profile) Sets the profile of the player who owns the skull.booleansetOwningPlayer(OfflinePlayer owner) Sets the owner of the skull.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getConsumable, getCustomModelData, getCustomModelDataComponent, getCustomTagContainer, getDamageResistant, getDisplayName, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, getTooltipStyle, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasConsumable, hasCustomModelData, hasDamageResistant, hasDisplayName, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setConsumable, setCustomModelData, setCustomModelDataComponent, setDamageResistant, setDisplayName, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
getOwnerDeprecated.seegetOwningPlayer().Gets the owner of the skull.- Returns:
- the owner if the skull
 
- 
hasOwnerboolean hasOwner()Checks to see if the skull has an owner.- Returns:
- true if the skull has an owner
 
- 
setOwnerDeprecated.Sets the owner of the skull.- Parameters:
- owner- the new owner of the skull
- Returns:
- true if the owner was successfully set
 
- 
getOwningPlayerGets the owner of the skull.- Returns:
- the owner if the skull
 
- 
setOwningPlayerSets 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
 
- 
getOwnerProfileGets the profile of the player who owns the skull. This player profile may appear as the texture depending on skull type.- Returns:
- the profile of the owning player
 
- 
setOwnerProfileSets the profile of the player who owns the skull. This player profile may appear as the texture depending on skull type.The profile must contain both a unique id and a skin texture. If either of these is missing, the profile must contain a name by which the server will then attempt to look up the unique id and skin texture. - Parameters:
- profile- the profile of the owning player
- Throws:
- IllegalArgumentException- if the profile does not contain the necessary information
 
- 
setNoteBlockSoundSets the sound to play if the skull is placed on a note block.
 Note: This only works for player heads. For other heads, seeInstrument.- Parameters:
- noteBlockSound- the key of the sound to be played, or null
 
- 
getNoteBlockSoundGets the sound to play if the skull is placed on a note block.
 Note: This only works for player heads. For other heads, seeInstrument.- Returns:
- the key of the sound, or null
 
- 
clone
 
- 
getOwningPlayer().