org.bukkit.material
Class FlowerPot

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.FlowerPot
All Implemented Interfaces:
Cloneable

public class FlowerPot
extends MaterialData

Represents a flower pot.


Constructor Summary
FlowerPot()
          Default constructor for a flower pot.
FlowerPot(int type)
           
FlowerPot(int type, byte data)
           
FlowerPot(Material type)
           
FlowerPot(Material type, byte data)
           
 
Method Summary
 FlowerPot clone()
           
 MaterialData getContents()
          Get the material in the flower pot
 void setContents(MaterialData materialData)
          Set the contents of the flower pot
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowerPot

public FlowerPot()
Default constructor for a flower pot.


FlowerPot

public FlowerPot(int type)

FlowerPot

public FlowerPot(Material type)

FlowerPot

public FlowerPot(int type,
                 byte data)

FlowerPot

public FlowerPot(Material type,
                 byte data)
Method Detail

getContents

public MaterialData getContents()
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)
Set the contents of the flower pot

Parameters:
materialData - MaterialData of the block to put in the flower pot.

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public FlowerPot clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.