Set this lever to be powered or not. @param isPowered whether the lever should be powered or not
(boolean isPowered)
| 42 | * @param isPowered whether the lever should be powered or not |
| 43 | */ |
| 44 | public void setPowered(boolean isPowered) { |
| 45 | setData((byte) (isPowered ? (getData() | 0x8) : (getData() & ~0x8))); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Gets the face that this block is attached on |