public class Torch extends SimpleAttachableMaterialData
| 构造器和说明 |
|---|
Torch() |
Torch(int type)
已过时。
不安全的参数
|
Torch(int type,
byte data)
已过时。
不安全的参数
|
Torch(Material type) |
Torch(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
Torch |
clone() |
BlockFace |
getAttachedFace()
获取这个火把附着的朝向.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
getFacing, toStringequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Torch()
@Deprecated public Torch(int type)
type - the raw type idpublic Torch(Material type)
@Deprecated
public Torch(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public Torch(Material type, byte data)
type - the typedata - the raw data valuepublic BlockFace getAttachedFace()
原文:Gets the face that this block is attached on
public void setFacingDirection(BlockFace face)
Directional原文:Sets the direction that this block is facing in
face - 这个方块的朝向public Torch clone()
clone 在类中 SimpleAttachableMaterialData