Package org.bukkit.material
Class Pumpkin
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Pumpkin
- All Implemented Interfaces:
java.lang.Cloneable
,Directional
public class Pumpkin extends MaterialData implements Directional
Represents a pumpkin.
-
Constructor Summary
Constructors Constructor Description Pumpkin()
Pumpkin(int type)
Deprecated.Magic valuePumpkin(int type, byte data)
Deprecated.Magic valuePumpkin(BlockFace direction)
Instantiate a pumpkin facing in a particular direction.Pumpkin(Material type)
Pumpkin(Material type, byte data)
Deprecated.Magic value -
Method Summary
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Pumpkin
public Pumpkin() -
Pumpkin
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- Parameters:
type
- the raw type id
-
Pumpkin
-
Pumpkin
@Deprecated public Pumpkin(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Pumpkin
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isLit
public boolean isLit() -
setFacingDirection
Description copied from interface:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-