Cloneable
, Directional
public class Pumpkin extends MaterialData implements Directional
Constructor | Description |
---|---|
Pumpkin() |
|
Pumpkin(BlockFace direction) |
Instantiate a pumpkin facing in a particular direction.
|
Pumpkin(Material type) |
|
Pumpkin(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | 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, hashCode, setData, toItemStack, toItemStack
public Pumpkin()
public Pumpkin(BlockFace direction)
direction
- the direction the pumkin's face is facingpublic Pumpkin(Material type)
@Deprecated public Pumpkin(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isLit()
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public String toString()
toString
in class MaterialData
public Pumpkin clone()
clone
in class MaterialData
Copyright © 2020. All rights reserved.