Bukkit  1.5.2-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.Vine Class Reference

Represents a vine. More...

+ Inheritance diagram for org.bukkit.material.Vine:
+ Collaboration diagram for org.bukkit.material.Vine:

Public Member Functions

 Vine ()
 
 Vine (int type, byte data)
 
 Vine (byte data)
 
 Vine (BlockFace...faces)
 
 Vine (EnumSet< BlockFace > faces)
 
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 ()
 
Vine clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents a vine.

Definition at line 12 of file Vine.java.

Constructor & Destructor Documentation

org.bukkit.material.Vine.Vine ( )

Definition at line 19 of file Vine.java.

References org.bukkit.Material.VINE.

org.bukkit.material.Vine.Vine ( int  type,
byte  data 
)

Definition at line 23 of file Vine.java.

org.bukkit.material.Vine.Vine ( byte  data)

Definition at line 27 of file Vine.java.

References org.bukkit.Material.VINE.

org.bukkit.material.Vine.Vine ( BlockFace...  faces)

Definition at line 31 of file Vine.java.

Member Function Documentation

Vine org.bukkit.material.Vine.clone ( )

Definition at line 182 of file Vine.java.

References org.bukkit.material.Vine.clone().

Referenced by org.bukkit.material.Vine.clone().

boolean org.bukkit.material.Vine.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
faceThe face to check.
Returns
Whether it is attached to that face.

Definition at line 67 of file Vine.java.

References org.bukkit.block.BlockFace.EAST, org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.block.BlockFace.SOUTH, and org.bukkit.block.BlockFace.WEST.

void org.bukkit.material.Vine.putOnFace ( BlockFace  face)

Attach the vine to the specified face of an adjacent block.

Parameters
faceThe face to attach.

Definition at line 97 of file Vine.java.

References org.bukkit.block.BlockFace.EAST, org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.material.MaterialData.setData(), org.bukkit.block.BlockFace.SOUTH, and org.bukkit.block.BlockFace.WEST.

void org.bukkit.material.Vine.removeFromFace ( BlockFace  face)

Detach the vine from the specified face of an adjacent block.

Parameters
faceThe face to detach.

Definition at line 139 of file Vine.java.

References org.bukkit.block.BlockFace.EAST, org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.material.MaterialData.setData(), org.bukkit.block.BlockFace.SOUTH, and org.bukkit.block.BlockFace.WEST.

String org.bukkit.material.Vine.toString ( )

Definition at line 177 of file Vine.java.


The documentation for this class was generated from the following file: