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