java.lang.Cloneable
, Directional
public class Skull extends MaterialData implements Directional
Constructor | Description |
---|---|
Skull() |
|
Skull(int type) |
Deprecated.
Magic value
|
Skull(int type,
byte data) |
Deprecated.
Magic value
|
Skull(BlockFace direction) |
Instantiate a skull facing in a particular direction.
|
Skull(Material type) |
|
Skull(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Skull |
clone() |
|
BlockFace |
getFacing() |
Gets the direction this block is facing
|
void |
setFacingDirection(BlockFace face) |
Sets the direction that this block is facing in
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Skull()
public Skull(BlockFace direction)
direction
- the direction the skull's face is facing@Deprecated public Skull(int type)
type
- the raw type idpublic Skull(Material type)
@Deprecated public Skull(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Skull(Material type, byte data)
type
- the typedata
- the raw data valuepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public java.lang.String toString()
toString
in class MaterialData
public Skull clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.