Cloneable
, Directional
, Redstone
BlockData
.@Deprecated public class PistonBaseMaterial extends MaterialData implements Directional, Redstone
Constructor | Description |
---|---|
PistonBaseMaterial(Material type) |
Deprecated.
|
PistonBaseMaterial(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
PistonBaseMaterial |
clone() |
Deprecated.
|
BlockFace |
getFacing() |
Deprecated.
Gets the direction this block is facing
|
boolean |
isPowered() |
Deprecated.
Gets the current state of this Material, indicating if it's powered or
unpowered
|
boolean |
isSticky() |
Deprecated.
Checks if this piston base is sticky, and returns true if so
|
void |
setFacingDirection(BlockFace face) |
Deprecated.
Sets the direction that this block is facing in
|
void |
setPowered(boolean powered) |
Deprecated.
Sets the current state of this piston
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack, toString
public PistonBaseMaterial(Material type)
@Deprecated public PistonBaseMaterial(Material type, byte data)
type
- the material type to usedata
- the raw data valuepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public boolean isPowered()
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
Copyright © 2019. All rights reserved.