Get a Facing by it's index (0-5). The order is D-U-N-S-W-E. Named getFront for legacy reasons.
(int index)
| 263 | * Get a Facing by it's index (0-5). The order is D-U-N-S-W-E. Named getFront for legacy reasons. |
| 264 | */ |
| 265 | public static EnumFacing getFront(int index) |
| 266 | { |
| 267 | return VALUES[MathHelper.abs_int(index % VALUES.length)]; |
| 268 | } |
| 269 | |
| 270 | /** |
| 271 | * Get a Facing by it's horizontal index (0-3). The order is S-W-N-E. |
no test coverage detected