org.bukkit.material
Class Pumpkin
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Pumpkin
- All Implemented Interfaces:
- Cloneable, Directional
public class Pumpkin
- extends MaterialData
- implements Directional
Represents a pumpkin.
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
public Pumpkin(int type)
Pumpkin
public Pumpkin(Material type)
Pumpkin
public Pumpkin(int type,
byte data)
Pumpkin
public Pumpkin(Material type,
byte data)
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.