org.bukkit.material
public class PistonBaseMaterial extends MaterialData implements Directional, Redstone
| Constructor and Description | 
|---|
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 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString@Deprecated public PistonBaseMaterial(int type)
public PistonBaseMaterial(Material type)
@Deprecated public PistonBaseMaterial(int type, byte data)
@Deprecated public PistonBaseMaterial(Material type, byte data)
public void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic boolean isPowered()
Redstonepublic void setPowered(boolean powered)
powered - true if the piston is extended & powered, or falsepublic boolean isSticky()
public PistonBaseMaterial clone()
clone in class MaterialDataCopyright © 2014. All rights reserved.