Class Vine

All Implemented Interfaces:
Cloneable

@Deprecated(forRemoval=true, since="1.13") public class Vine 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 vine
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Vine(byte data)
    Deprecated.
    Magic value
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Vine(BlockFace... faces)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Vine(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.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Check if the vine is attached to the specified face of an adjacent block.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Attach the vine to the specified face of an adjacent block.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Detach the vine from the specified face of an adjacent block.
    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

    • Vine

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

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

      @Deprecated public Vine(byte data)
      Deprecated.
      Magic value
      Parameters:
      data - the raw data value
    • Vine

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

      public Vine(EnumSet<BlockFace> faces)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isOnFace

      public boolean isOnFace(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Check if the vine is attached to the specified face of an adjacent block. You can check two faces at once by passing e.g. BlockFace.NORTH_EAST.
      Parameters:
      face - The face to check.
      Returns:
      Whether it is attached to that face.
    • putOnFace

      public void putOnFace(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Attach the vine to the specified face of an adjacent block.
      Parameters:
      face - The face to attach.
    • removeFromFace

      public void removeFromFace(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Detach the vine from the specified face of an adjacent block.
      Parameters:
      face - The face to detach.
    • 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 Vine clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData