|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.CocoaPlant
public class CocoaPlant
Represents the cocoa plant
| Nested Class Summary | |
|---|---|
static class |
CocoaPlant.CocoaPlantSize
|
| Constructor Summary | |
|---|---|
CocoaPlant()
|
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz)
|
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir)
|
|
CocoaPlant(int type)
|
|
CocoaPlant(int type,
byte data)
|
|
| Method Summary | |
|---|---|
CocoaPlant |
clone()
|
BlockFace |
getAttachedFace()
Gets the face that this block is attached on |
BlockFace |
getFacing()
Gets the direction this block is facing |
CocoaPlant.CocoaPlantSize |
getSize()
Get size of plant |
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in |
void |
setSize(CocoaPlant.CocoaPlantSize sz)
Set size of plant |
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 |
|---|
public CocoaPlant()
public CocoaPlant(int type)
public CocoaPlant(int type,
byte data)
public CocoaPlant(CocoaPlant.CocoaPlantSize sz)
public CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir)
| Method Detail |
|---|
public CocoaPlant.CocoaPlantSize getSize()
public void setSize(CocoaPlant.CocoaPlantSize sz)
sz - - size of plantpublic BlockFace getAttachedFace()
Attachable
getAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
Directional
getFacing in interface Directionalpublic CocoaPlant clone()
clone in class MaterialDatapublic String toString()
toString in class MaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||