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:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-