Class CocoaPlant

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.CocoaPlant
All Implemented Interfaces:
Cloneable, Attachable, Directional

@Deprecated(forRemoval=true, since="1.13") public class CocoaPlant extends MaterialData implements Directional, Attachable
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 the cocoa plant
  • Constructor Details

    • CocoaPlant

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

      @Deprecated public CocoaPlant(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
    • CocoaPlant

      public CocoaPlant(CocoaPlant.CocoaPlantSize sz)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CocoaPlant

      public CocoaPlant(CocoaPlant.CocoaPlantSize sz, BlockFace dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getSize

      public CocoaPlant.CocoaPlantSize getSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get size of plant
      Returns:
      size
    • setSize

      public void setSize(CocoaPlant.CocoaPlantSize sz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set size of plant
      Parameters:
      sz - - size of plant
    • getAttachedFace

      public BlockFace getAttachedFace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Attachable
      Gets the face that this block is attached on
      Specified by:
      getAttachedFace in interface Attachable
      Returns:
      BlockFace attached to
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Directional
      Sets the direction that this block is facing in
      Specified by:
      setFacingDirection in interface Directional
      Parameters:
      face - The facing direction
    • getFacing

      public BlockFace getFacing()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Directional
      Gets the direction this block is facing
      Specified by:
      getFacing in interface Directional
      Returns:
      the direction this block is facing
    • clone

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

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