Sets the current state of this button @param bool whether or not the button is powered
(boolean bool)
| 47 | * whether or not the button is powered |
| 48 | */ |
| 49 | public void setPowered(boolean bool) { |
| 50 | setData((byte) (bool ? (getData() | 0x8) : (getData() & ~0x8))); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Gets the face that this block is attached on |