public class PistonBaseMaterial extends MaterialData implements Directional, Redstone
| 构造器和说明 |
|---|
PistonBaseMaterial(int type)
已过时。
不安全的参数
|
PistonBaseMaterial(int type,
byte data)
已过时。
不安全的参数
|
PistonBaseMaterial(Material type) |
PistonBaseMaterial(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
PistonBaseMaterial |
clone() |
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isPowered()
这个物品有没有充能.
|
boolean |
isSticky()
检测这是不是一个粘性活塞。
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
setPowered(boolean powered)
设置这个活塞的状态.
|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString@Deprecated public PistonBaseMaterial(int type)
原文:Constructs a PistonBaseMaterial
type - the raw type idpublic PistonBaseMaterial(Material type)
@Deprecated
public PistonBaseMaterial(int type,
byte data)
原文:Constructs a PistonBaseMaterial.
type - the raw type iddata - the raw data value@Deprecated public PistonBaseMaterial(Material type, byte data)
原文:Constructs a PistonBaseMaterial.
type - the material type to usedata - 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 isPowered()
Redstone原文:Gets the current state of this Material, indicating if it's powered or unpowered
public void setPowered(boolean powered)
原文:Sets the current state of this piston
powered - 如果活塞伸出或充能为truepublic boolean isSticky()
原文:Checks if this piston base is sticky, and returns true if so
public PistonBaseMaterial clone()
clone 在类中 MaterialData