public class CocoaPlant extends MaterialData implements Directional, Attachable
限定符和类型 | 类和说明 |
---|---|
static class |
CocoaPlant.CocoaPlantSize |
构造器和说明 |
---|
CocoaPlant() |
CocoaPlant(CocoaPlant.CocoaPlantSize sz) |
CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir) |
CocoaPlant(int type)
已过时。
不安全的参数
|
CocoaPlant(int type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
CocoaPlant |
clone() |
BlockFace |
getAttachedFace()
获取这个方块附着的朝向.
|
BlockFace |
getFacing()
获取这个方块的朝向.
|
CocoaPlant.CocoaPlantSize |
getSize()
获取这个可可豆的体积.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
setSize(CocoaPlant.CocoaPlantSize sz)
设置这个可可豆的体积.
|
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()
原文:Get size of plant
public void setSize(CocoaPlant.CocoaPlantSize sz)
原文:Set size of plant
sz
- 体积public BlockFace getAttachedFace()
Attachable
原文: Gets the face that this block is attached on
getAttachedFace
在接口中 Attachable
public void setFacingDirection(BlockFace face)
Directional
原文:Sets the direction that this block is facing in
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public BlockFace getFacing()
Directional
原文:Gets the direction this block is facing
getFacing
在接口中 Directional
public CocoaPlant clone()
clone
在类中 MaterialData
public java.lang.String toString()
toString
在类中 MaterialData