Cloneable, Attachable, Directional, Redstone@Deprecated public class Button extends SimpleAttachableMaterialData implements Redstone
BlockData.| Constructor | Description | 
|---|---|
| Button() | Deprecated. | 
| Button(Material type) | Deprecated. | 
| Button(Material type,
      byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Button | clone() | Deprecated. | 
| BlockFace | getAttachedFace() | Deprecated. Gets the face that this block is attached on | 
| boolean | isPowered() | Deprecated. Gets the current state of this Material, indicating if it's powered or
 unpowered | 
| void | setFacingDirection(BlockFace face) | Deprecated. Sets the direction this button is pointing toward | 
| void | setPowered(boolean bool) | Deprecated. Sets the current state of this button | 
| String | toString() | Deprecated. | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic Button()
public Button(Material type)
@Deprecated public Button(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isPowered()
public void setPowered(boolean bool)
bool - whether or not the button is poweredpublic BlockFace getAttachedFace()
getAttachedFace in interface Attachablepublic void setFacingDirection(BlockFace face)
setFacingDirection in interface Directionalface - The facing directionpublic String toString()
toString in class SimpleAttachableMaterialDatapublic Button clone()
clone in class SimpleAttachableMaterialDataCopyright © 2020. All rights reserved.