java.lang.Cloneable, Attachable, Directional, Redstonepublic class Button extends SimpleAttachableMaterialData implements Redstone
| Constructor | Description |
|---|---|
Button() |
|
Button(int type) |
Deprecated.
Magic value
|
Button(int type,
byte data) |
Deprecated.
Magic value
|
Button(Material type) |
|
Button(Material type,
byte data) |
Deprecated.
Magic value
|
| Modifier and Type | Method | Description |
|---|---|---|
Button |
clone() |
|
BlockFace |
getAttachedFace() |
Gets the face that this block is attached on
|
boolean |
isPowered() |
Gets the current state of this Material, indicating if it's powered or
unpowered
|
void |
setFacingDirection(BlockFace face) |
Sets the direction this button is pointing toward
|
void |
setPowered(boolean bool) |
Sets the current state of this button
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic Button()
@Deprecated public Button(int type)
type - the typepublic Button(Material type)
@Deprecated
public Button(int type,
byte data)
type - the raw type iddata - the raw data value@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 java.lang.String toString()
toString in class SimpleAttachableMaterialDatapublic Button clone()
clone in class SimpleAttachableMaterialDataCopyright © 2018. All rights reserved.