Package org.bukkit.material
Class Skull
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Skull
- All Implemented Interfaces:
java.lang.Cloneable,Directional
public class Skull extends MaterialData implements Directional
Represents a skull.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Skull
public Skull() -
Skull
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- Parameters:
type- the raw type id
-
Skull
-
Skull
@Deprecated public Skull(int type, byte data)Deprecated.Magic value- Parameters:
type- the raw type iddata- the raw data value
-
Skull
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Details
-
setFacingDirection
Description copied from interface:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-