Cloneable, Attachable, DirectionalBlockData.@Deprecated public class CocoaPlant extends MaterialData implements Directional, Attachable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CocoaPlant.CocoaPlantSize |
Deprecated.
|
| Constructor | Description |
|---|---|
CocoaPlant() |
Deprecated.
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz) |
Deprecated.
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir) |
Deprecated.
|
CocoaPlant(Material type,
byte data) |
Deprecated.
Magic value
|
| Modifier and Type | Method | Description |
|---|---|---|
CocoaPlant |
clone() |
Deprecated.
|
BlockFace |
getAttachedFace() |
Deprecated.
Gets the face that this block is attached on
|
BlockFace |
getFacing() |
Deprecated.
Gets the direction this block is facing
|
CocoaPlant.CocoaPlantSize |
getSize() |
Deprecated.
Get size of plant
|
void |
setFacingDirection(BlockFace face) |
Deprecated.
Sets the direction that this block is facing in
|
void |
setSize(CocoaPlant.CocoaPlantSize sz) |
Deprecated.
Set size of plant
|
String |
toString() |
Deprecated.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic CocoaPlant()
@Deprecated public CocoaPlant(Material type, byte data)
type - the typedata - the raw data valuepublic CocoaPlant(CocoaPlant.CocoaPlantSize sz)
public CocoaPlant(CocoaPlant.CocoaPlantSize sz, BlockFace dir)
public CocoaPlant.CocoaPlantSize getSize()
public void setSize(CocoaPlant.CocoaPlantSize sz)
sz - - size of plantpublic BlockFace getAttachedFace()
AttachablegetAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic CocoaPlant clone()
clone in class MaterialDatapublic String toString()
toString in class MaterialDataCopyright © 2019. All rights reserved.