|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Pumpkin
public class Pumpkin
Represents a pumpkin.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
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 |
---|
public 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)
Method Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |