public class PistonExtensionMaterial extends MaterialData implements Attachable
| 构造器和说明 |
|---|
PistonExtensionMaterial(int type)
已过时。
不安全的参数
|
PistonExtensionMaterial(int type,
byte data)
已过时。
不安全的参数
|
PistonExtensionMaterial(Material type) |
PistonExtensionMaterial(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
PistonExtensionMaterial |
clone() |
BlockFace |
getAttachedFace()
获取这个方块附着的朝向.
|
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isSticky()
检测这个活塞臂是否是粘性的.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
setSticky(boolean sticky)
设置这个活塞臂是否是粘性的.
|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString@Deprecated public PistonExtensionMaterial(int type)
type - the raw type idpublic PistonExtensionMaterial(Material type)
@Deprecated
public PistonExtensionMaterial(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public PistonExtensionMaterial(Material type, byte data)
type - the typedata - the raw data valuepublic void setFacingDirection(BlockFace face)
Directional原文:Sets the direction that this block is facing in
setFacingDirection 在接口中 Directionalface - 这个方块的朝向public BlockFace getFacing()
Directional原文:Gets the direction this block is facing
getFacing 在接口中 Directionalpublic boolean isSticky()
原文:Checks if this piston extension is sticky, and returns true if so
public void setSticky(boolean sticky)
原文:Sets whether or not this extension is sticky
sticky - 这个活塞是否是粘性的public BlockFace getAttachedFace()
Attachable原文: Gets the face that this block is attached on
getAttachedFace 在接口中 Attachablepublic PistonExtensionMaterial clone()
clone 在类中 MaterialData