Set the direction of this cursor. @param direction The facing of the cursor, from 0 to 15.
(byte direction)
| 162 | * @param direction The facing of the cursor, from 0 to 15. |
| 163 | */ |
| 164 | public void setDirection(byte direction) { |
| 165 | if (direction < 0 || direction > 15) { |
| 166 | throw new IllegalArgumentException("Direction must be in the range 0-15"); |
| 167 | } |
| 168 | this.direction = direction; |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Set the type of this cursor. |