org.bukkit.inventory.meta
Interface SkullMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta

public interface SkullMeta
extends ItemMeta

Represents a skull (Material.SKULL_ITEM) that can have an owner.


Method Summary
 SkullMeta clone()
           
 String getOwner()
          Gets the owner of the skull.
 boolean hasOwner()
          Checks to see if the skull has an owner.
 boolean setOwner(String owner)
          Sets the owner of the skull.
 
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addEnchant, getDisplayName, getEnchantLevel, getEnchants, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasLore, removeEnchant, setDisplayName, setLore
 
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
 

Method Detail

getOwner

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(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()
Specified by:
clone in interface ItemMeta


Copyright © 2014. All rights reserved.