Class FlowerPot

  • All Implemented Interfaces:
    Cloneable

    @Deprecated
    public class FlowerPot
    extends MaterialData
    Deprecated.
    all usage of MaterialData is deprecated and subject to removal. Use BlockData.
    Represents a flower pot.
    • 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 type
        data - 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.