Class Vine

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

public class Vine
extends MaterialData
Represents a vine
  • Constructor Details

    • Vine

      public Vine()
    • Vine

      @Deprecated public Vine​(int type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the raw type id
      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)
    • Vine

      public Vine​(java.util.EnumSet<BlockFace> faces)
  • Method Details

    • isOnFace

      public boolean isOnFace​(BlockFace face)
      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)
      Attach the vine to the specified face of an adjacent block.
      Parameters:
      face - The face to attach.
    • removeFromFace

      public void removeFromFace​(BlockFace face)
      Detach the vine from the specified face of an adjacent block.
      Parameters:
      face - The face to detach.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class MaterialData
    • clone

      public Vine clone()
      Overrides:
      clone in class MaterialData