java.lang.Cloneable
, Attachable
, Directional
public class CocoaPlant extends MaterialData implements Directional, Attachable
Modifier and Type | Class | Description |
---|---|---|
static class |
CocoaPlant.CocoaPlantSize |
Constructor | Description |
---|---|
CocoaPlant() |
|
CocoaPlant(int type) |
Deprecated.
Magic value
|
CocoaPlant(int type,
byte data) |
Deprecated.
Magic value
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz) |
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir) |
Modifier and Type | Method | Description |
---|---|---|
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
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public CocoaPlant()
@Deprecated public CocoaPlant(int type)
type
- the raw type id@Deprecated public CocoaPlant(int type, byte data)
type
- the raw type iddata
- 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()
Attachable
getAttachedFace
in interface Attachable
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public CocoaPlant clone()
clone
in class MaterialData
public java.lang.String toString()
toString
in class MaterialData
Copyright © 2018. All rights reserved.