public class Pumpkin extends MaterialData implements Directional
构造器和说明 |
---|
Pumpkin() |
Pumpkin(BlockFace direction)
实例化一个特定朝向的南瓜.
|
Pumpkin(int type)
已过时。
不安全的参数
|
Pumpkin(int type,
byte data)
已过时。
不安全的参数
|
Pumpkin(Material type) |
Pumpkin(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Pumpkin |
clone() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isLit() |
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Pumpkin()
public Pumpkin(BlockFace direction)
原文:Instantiate a pumpkin facing in a particular direction.
direction
- 南瓜面对的方向@Deprecated public Pumpkin(int type)
type
- the raw type idpublic Pumpkin(Material type)
@Deprecated public Pumpkin(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Pumpkin(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isLit()
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 java.lang.String toString()
toString
在类中 MaterialData
public Pumpkin clone()
clone
在类中 MaterialData