org.bukkit.material
Class Vine

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

public class Vine
extends MaterialData

Represents a vine


Constructor Summary
Vine()
           
Vine(BlockFace... faces)
           
Vine(byte data)
          Deprecated. Magic value
Vine(EnumSet<BlockFace> faces)
           
Vine(int type, byte data)
          Deprecated. Magic value
 
Method Summary
 Vine clone()
           
 boolean isOnFace(BlockFace face)
          Check if the vine is attached to the specified face of an adjacent block.
 void putOnFace(BlockFace face)
          Attach the vine to the specified face of an adjacent block.
 void removeFromFace(BlockFace face)
          Detach the vine from the specified face of an adjacent block.
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vine

public Vine()

Vine

@Deprecated
public Vine(int type,
                       byte data)
Deprecated. Magic value


Vine

@Deprecated
public Vine(byte data)
Deprecated. Magic value


Vine

public Vine(BlockFace... faces)

Vine

public Vine(EnumSet<BlockFace> faces)
Method Detail

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 String toString()
Overrides:
toString in class MaterialData

clone

public Vine clone()
Overrides:
clone in class MaterialData


Copyright © 2014. All rights reserved.