|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.PistonBaseMaterial
public class PistonBaseMaterial
Material data for the piston base block
| Constructor Summary | |
|---|---|
PistonBaseMaterial(int type)
|
|
PistonBaseMaterial(int type,
byte data)
|
|
PistonBaseMaterial(Material type)
|
|
PistonBaseMaterial(Material type,
byte data)
|
|
| 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 |
|---|
public PistonBaseMaterial(int type)
public PistonBaseMaterial(Material type)
public PistonBaseMaterial(int type,
byte data)
public PistonBaseMaterial(Material type,
byte data)
| Method Detail |
|---|
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
Directional
getFacing in interface Directionalpublic boolean isPowered()
Redstone
isPowered in interface Redstonepublic 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 | |||||||||