BlockData.@Deprecated public class PistonExtensionMaterial extends MaterialData implements Attachable
| Constructor and Description |
|---|
PistonExtensionMaterial(Material type)
Deprecated.
|
PistonExtensionMaterial(Material type,
byte data)
Deprecated.
Magic value
|
| Modifier and Type | Method and Description |
|---|---|
PistonExtensionMaterial |
clone()
Deprecated.
|
BlockFace |
getAttachedFace()
Deprecated.
Gets the face that this block is attached on
|
BlockFace |
getFacing()
Deprecated.
Gets the direction this block is facing
|
boolean |
isSticky()
Deprecated.
Checks if this piston extension is sticky, and returns true if so
|
void |
setFacingDirection(BlockFace face)
Deprecated.
Sets the direction that this block is facing in
|
void |
setSticky(boolean sticky)
Deprecated.
Sets whether or not this extension is sticky
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack, toStringpublic PistonExtensionMaterial(Material type)
@Deprecated public PistonExtensionMaterial(Material type, byte data)
type - the typedata - the raw data valuepublic void setFacingDirection(BlockFace face)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic boolean isSticky()
public void setSticky(boolean sticky)
sticky - true if sticky, otherwise falsepublic BlockFace getAttachedFace()
AttachablegetAttachedFace in interface Attachablepublic PistonExtensionMaterial clone()
clone in class MaterialDataCopyright © 2021. All rights reserved.