Configure this door to be either open or closed; @param isOpen True to open the door.
(boolean isOpen)
| 40 | * @param isOpen True to open the door. |
| 41 | */ |
| 42 | public void setOpen(boolean isOpen) { |
| 43 | setData((byte) (isOpen ? (getData() | 0x4) : (getData() & ~0x4))); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * @return whether this is the top half of the door |