|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.PistonBaseMaterial
public class PistonBaseMaterial
Material data for the piston base block
Constructor Summary | |
---|---|
PistonBaseMaterial(int type)
Deprecated. Magic value |
|
PistonBaseMaterial(int type,
byte data)
Deprecated. Magic value |
|
PistonBaseMaterial(Material type)
|
|
PistonBaseMaterial(Material type,
byte data)
Deprecated. Magic value |
Method Summary | |
---|---|
PistonBaseMaterial |
clone()
|
BlockFace |
getFacing()
Gets the direction this block is facing |
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered |
boolean |
isSticky()
Checks if this piston base is sticky, and returns true if so |
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in |
void |
setPowered(boolean powered)
Sets the current state of this piston |
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public PistonBaseMaterial(int type)
public PistonBaseMaterial(Material type)
@Deprecated public PistonBaseMaterial(int type, byte data)
@Deprecated public PistonBaseMaterial(Material type, byte data)
Method Detail |
---|
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public boolean isPowered()
Redstone
isPowered
in interface Redstone
public void setPowered(boolean powered)
powered
- true if the piston is extended & powered, or falsepublic boolean isSticky()
public PistonBaseMaterial clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |