Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
block/Skull.java
1 package org.bukkit.block;
2 
3 import org.bukkit.SkullType;
4 
5 /**
6  * Represents a Skull
7  */
8 public interface Skull extends BlockState {
9 
10  /**
11  * Checks to see if the skull has an owner
12  *
13  * @return true if the skull has an owner
14  */
15  public boolean hasOwner();
16 
17  /**
18  * Gets the owner of the skull, if one exists
19  *
20  * @return the owner of the skull or null if the skull does not have an owner
21  */
22  public String getOwner();
23 
24  /**
25  * Sets the owner of the skull
26  * <p>
27  * Involves a potentially blocking web request to acquire the profile data for
28  * the provided name.
29  *
30  * @param name the new owner of the skull
31  * @return true if the owner was successfully set
32  */
33  public boolean setOwner(String name);
34 
35  /**
36  * Gets the rotation of the skull in the world
37  *
38  * @return the rotation of the skull
39  */
40  public BlockFace getRotation();
41 
42  /**
43  * Sets the rotation of the skull in the world
44  *
45  * @param rotation the rotation of the skull
46  */
47  public void setRotation(BlockFace rotation);
48 
49  /**
50  * Gets the type of skull
51  *
52  * @return the type of skull
53  */
54  public SkullType getSkullType();
55 
56  /**
57  * Sets the type of skull
58  *
59  * @param skullType the type of skull
60  */
61  public void setSkullType(SkullType skullType);
62 }
BlockFace getRotation()
SkullType getSkullType()
void setRotation(BlockFace rotation)
void setSkullType(SkullType skullType)
boolean setOwner(String name)