Package org.bukkit.inventory.meta
Interface SkullMeta
-
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
public interface SkullMeta extends ItemMeta
Represents a skull that can have an owner.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SkullMeta
clone()
String
getOwner()
Deprecated.OfflinePlayer
getOwningPlayer()
Gets the owner of the skull.boolean
hasOwner()
Checks to see if the skull has an owner.boolean
setOwner(String owner)
Deprecated.boolean
setOwningPlayer(OfflinePlayer owner)
Sets the owner of the skull.-
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion, spigot
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
-
-
-
Method Detail
-
getOwner
@Deprecated @Nullable String getOwner()
Deprecated.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 boolean setOwner(@Nullable String owner)
Deprecated.Sets the owner of the skull.- Parameters:
owner
- the new owner of the skull- Returns:
- true if the owner was successfully set
-
getOwningPlayer
@Nullable OfflinePlayer getOwningPlayer()
Gets the owner of the skull.- Returns:
- the owner if the skull
-
setOwningPlayer
boolean setOwningPlayer(@Nullable OfflinePlayer owner)
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
-
-