org.bukkit.material
Class Vine
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Vine
- All Implemented Interfaces:
- Cloneable
public class Vine
- extends MaterialData
Represents a vine
Vine
public Vine()
Vine
public Vine(int type,
byte data)
Vine
public Vine(byte data)
Vine
public Vine(BlockFace... faces)
Vine
public Vine(EnumSet<BlockFace> faces)
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 eg
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 © 2013. All Rights Reserved.