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