Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.Skull Interface Reference
Inheritance diagram for org.bukkit.block.Skull:
org.bukkit.block.BlockState org.bukkit.metadata.Metadatable

Public Member Functions

boolean hasOwner ()
 
String getOwner ()
 
boolean setOwner (String name)
 
BlockFace getRotation ()
 
void setRotation (BlockFace rotation)
 
SkullType getSkullType ()
 
void setSkullType (SkullType skullType)
 
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
 
MaterialData getData ()
 
Material getType ()
 
int getTypeId ()
 
byte getLightLevel ()
 
World getWorld ()
 
int getX ()
 
int getY ()
 
int getZ ()
 
Location getLocation ()
 
Location getLocation (Location loc)
 
Chunk getChunk ()
 
void setData (MaterialData data)
 
void setType (Material type)
 
boolean setTypeId (int type)
 
boolean update ()
 
boolean update (boolean force)
 
boolean update (boolean force, boolean applyPhysics)
 
byte getRawData ()
 
void setRawData (byte data)
 

Detailed Description

Represents a Skull

Definition at line 8 of file block/Skull.java.

Member Function Documentation

String org.bukkit.block.Skull.getOwner ( )

Gets the owner of the skull, if one exists

Returns
the owner of the skull or null if the skull does not have an owner
BlockFace org.bukkit.block.Skull.getRotation ( )

Gets the rotation of the skull in the world

Returns
the rotation of the skull
SkullType org.bukkit.block.Skull.getSkullType ( )

Gets the type of skull

Returns
the type of skull
boolean org.bukkit.block.Skull.hasOwner ( )

Checks to see if the skull has an owner

Returns
true if the skull has an owner
boolean org.bukkit.block.Skull.setOwner ( String  name)

Sets the owner of the skull

Involves a potentially blocking web request to acquire the profile data for the provided name.

Parameters
namethe new owner of the skull
Returns
true if the owner was successfully set
void org.bukkit.block.Skull.setRotation ( BlockFace  rotation)

Sets the rotation of the skull in the world

Parameters
rotationthe rotation of the skull
void org.bukkit.block.Skull.setSkullType ( SkullType  skullType)

Sets the type of skull

Parameters
skullTypethe type of skull

The documentation for this interface was generated from the following file: