org.bukkit.material
Class Skull

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Skull
All Implemented Interfaces:
Cloneable, Directional

public class Skull
extends MaterialData
implements Directional

Represents a skull.


Constructor Summary
Skull()
           
Skull(BlockFace direction)
          Instantiate a skull facing in a particular direction.
Skull(int type)
          Deprecated. Magic value
Skull(int type, byte data)
          Deprecated. Magic value
Skull(Material type)
           
Skull(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 Skull clone()
           
 BlockFace getFacing()
          Gets the direction this block is facing
 void setFacingDirection(BlockFace face)
          Sets the direction that this block is facing in
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Skull

public Skull()

Skull

public Skull(BlockFace direction)
Instantiate a skull facing in a particular direction.

Parameters:
direction - the direction the skull's face is facing

Skull

@Deprecated
public Skull(int type)
Deprecated. Magic value


Skull

public Skull(Material type)

Skull

@Deprecated
public Skull(int type,
                        byte data)
Deprecated. Magic value


Skull

@Deprecated
public Skull(Material type,
                        byte data)
Deprecated. Magic value

Method Detail

setFacingDirection

public void setFacingDirection(BlockFace face)
Description copied from interface: Directional
Sets the direction that this block is facing in

Specified by:
setFacingDirection in interface Directional
Parameters:
face - The facing direction

getFacing

public BlockFace getFacing()
Description copied from interface: Directional
Gets the direction this block is facing

Specified by:
getFacing in interface Directional
Returns:
the direction this block is facing

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Skull clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.