org.bukkit.material
Class Pumpkin

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Pumpkin
All Implemented Interfaces:
Cloneable, Directional

public class Pumpkin
extends MaterialData
implements Directional

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

Pumpkin

public Pumpkin()

Pumpkin

public Pumpkin(BlockFace direction)
Instantiate a pumpkin facing in a particular direction.

Parameters:
direction - the direction the pumkin's face is facing

Pumpkin

@Deprecated
public Pumpkin(int type)
Deprecated. Magic value


Pumpkin

public Pumpkin(Material type)

Pumpkin

@Deprecated
public Pumpkin(int type,
                          byte data)
Deprecated. Magic value


Pumpkin

@Deprecated
public Pumpkin(Material type,
                          byte data)
Deprecated. Magic value

Method Detail

isLit

public boolean isLit()

setFacingDirection

public void setFacingDirection(BlockFace face)
Description copied from interface: Directional
Sets the direction that this block is facing in

Specified by:
setFacingDirection in interface Directional
Parameters:
face - The facing direction

getFacing

public BlockFace getFacing()
Description copied from interface: Directional
Gets the direction this block is facing

Specified by:
getFacing in interface Directional
Returns:
the direction this block is facing

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Pumpkin clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.