Package org.bukkit.material
Class FlowerPot
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.FlowerPot
- All Implemented Interfaces:
java.lang.Cloneable
public class FlowerPot extends MaterialData
Represents a flower pot.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description FlowerPot
clone()
MaterialData
getContents()
Get the material in the flower potvoid
setContents(MaterialData materialData)
Set the contents of the flower potjava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
FlowerPot
public FlowerPot()Default constructor for a flower pot. -
FlowerPot
@Deprecated public FlowerPot(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
FlowerPot
-
FlowerPot
@Deprecated public FlowerPot(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
FlowerPot
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getContents
Get the material in the flower pot- Returns:
- material MaterialData for the block currently in the flower pot or null if empty
-
setContents
Set the contents of the flower pot- Parameters:
materialData
- MaterialData of the block to put in the flower pot.
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-