public class Pumpkin extends MaterialData implements Directional
| Constructor and Description |
|---|
Pumpkin() |
Pumpkin(BlockFace direction)
Instantiate a pumpkin facing in a particular direction.
|
Pumpkin(int type)
Deprecated.
Magic value
|
Pumpkin(int type,
byte data)
Deprecated.
Magic value
|
Pumpkin(Material type) |
Pumpkin(Material type,
byte data)
Deprecated.
Magic value
|
| Modifier and Type | Method and Description |
|---|---|
Pumpkin |
clone() |
BlockFace |
getFacing()
Gets the direction this block is facing
|
boolean |
isLit() |
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Pumpkin()
public Pumpkin(BlockFace direction)
direction - the direction the pumkin's face is facing@Deprecated public Pumpkin(int type)
public Pumpkin(Material type)
@Deprecated public Pumpkin(int type, byte data)
@Deprecated public Pumpkin(Material type, byte data)
public boolean isLit()
public void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic String toString()
toString in class MaterialDatapublic Pumpkin clone()
clone in class MaterialDataCopyright © 2014. All rights reserved.