Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
SkullMeta.java
1 package org.bukkit.inventory.meta;
2 
3 import org.bukkit.Material;
4 
5 /**
6  * Represents a skull ({@link Material#SKULL_ITEM}) that can have an owner.
7  */
8 public interface SkullMeta extends ItemMeta {
9 
10  /**
11  * Gets the owner of the skull.
12  *
13  * @return the owner if the skull
14  */
15  String getOwner();
16 
17  /**
18  * Checks to see if the skull has an owner.
19  *
20  * @return true if the skull has an owner
21  */
22  boolean hasOwner();
23 
24  /**
25  * Sets the owner of the skull.
26  * <p>
27  * Plugins should check that hasOwner() returns true before calling this
28  * plugin.
29  *
30  * @param owner the new owner of the skull
31  * @return true if the owner was successfully set
32  */
33  boolean setOwner(String owner);
34 
35  SkullMeta clone();
36 }
boolean setOwner(String owner)