Gets the current state of this Material, indicating if it's powered or unpowered @return true if powered, otherwise false
()
| 34 | * @return true if powered, otherwise false |
| 35 | */ |
| 36 | public boolean isPowered() { |
| 37 | return (getData() & 0x8) == 0x8; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Set this lever to be powered or not. |