org.bukkit.block
Interface Skull

All Superinterfaces:
BlockState, Metadatable

public interface Skull
extends BlockState

Represents a Skull


Method Summary
 String getOwner()
          Gets the owner of the skull
 BlockFace getRotation()
          Gets the rotation of the skull
 SkullType getSkullType()
          Gets the type of skull
 boolean hasOwner()
          Checks to see if the skull has an owner
 boolean setOwner(String name)
          Sets the owner of the skull
 void setRotation(BlockFace rotation)
          Sets the rotation of the skull
 void setSkullType(SkullType skullType)
          Sets the type of skull
 
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, setData, setRawData, setType, setTypeId, update, update
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

hasOwner

boolean hasOwner()
Checks to see if the skull has an owner

Returns:
true if the skull has an owner

getOwner

String getOwner()
Gets the owner of the skull

Returns:
the owner of the skull

setOwner

boolean setOwner(String name)
Sets the owner of the skull

Parameters:
name - the new owner of the skull
Returns:
true if the owner was successfully set

getRotation

BlockFace getRotation()
Gets the rotation of the skull

Returns:
the rotation of the skull

setRotation

void setRotation(BlockFace rotation)
Sets the rotation of the skull

Parameters:
rotation - the rotation of the skull

getSkullType

SkullType getSkullType()
Gets the type of skull

Returns:
the type of skull

setSkullType

void setSkullType(SkullType skullType)
Sets the type of skull

Parameters:
skullType - the type of skull


Copyright © 2013. All Rights Reserved.