Class FlowerPot

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

@Deprecated(since="1.13", forRemoval=true) public class FlowerPot extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a flower pot.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor for a flower pot.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    FlowerPot(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the material in the flower pot
    void
    setContents(MaterialData materialData)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the contents of the flower pot
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FlowerPot

      public FlowerPot()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor for a flower pot.
    • FlowerPot

      public FlowerPot(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • FlowerPot

      @Deprecated(since="1.6.2") public FlowerPot(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getContents

      public MaterialData getContents()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Set the contents of the flower pot
      Parameters:
      materialData - MaterialData of the block to put in the flower pot.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public FlowerPot clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData