Package org.bukkit.inventory.meta
Interface SkullMeta
-
- All Superinterfaces:
Cloneable,ConfigurationSerializable,ItemMeta
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 SkullMetaclone()StringgetOwner()Deprecated.OfflinePlayergetOwningPlayer()Gets the owner of the skull.booleanhasOwner()Checks to see if the skull has an owner.booleansetOwner(String owner)Deprecated.booleansetOwningPlayer(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
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
-
-
-
-
Method Detail
-
getOwner
@Deprecated 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(String owner)
Deprecated.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
-
getOwningPlayer
OfflinePlayer getOwningPlayer()
Gets the owner of the skull.- Returns:
- the owner if the skull
-
setOwningPlayer
boolean setOwningPlayer(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
-
-