Gets the current state of this Material, indicating if it's powered or unpowered @return true if powered, otherwise false
()
| 36 | * @return true if powered, otherwise false |
| 37 | */ |
| 38 | @Override |
| 39 | public boolean isPowered() { |
| 40 | return (getData() & 0x8) == 0x8; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Sets the current state of this button |