Package org.bukkit.inventory.meta
Interface SkullMeta
- All Superinterfaces:
java.lang.Cloneable
,ConfigurationSerializable
,ItemMeta
public interface SkullMeta extends ItemMeta
Represents a skull (
Material.SKULL_ITEM
) that can have an owner.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot
-
Method Summary
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, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLore, removeEnchant, removeItemFlags, setDisplayName, setLore, spigot
-
Method Details
-
getOwner
java.lang.String getOwner()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
boolean setOwner(java.lang.String 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
-
clone
SkullMeta clone()
-