Get a Facing by it's horizontal index (0-3). The order is S-W-N-E.
(int p_176731_0_)
| 271 | * Get a Facing by it's horizontal index (0-3). The order is S-W-N-E. |
| 272 | */ |
| 273 | public static EnumFacing getHorizontal(int p_176731_0_) |
| 274 | { |
| 275 | return HORIZONTALS[MathHelper.abs_int(p_176731_0_ % HORIZONTALS.length)]; |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * Get the Facing corresponding to the given angle (0-360). An angle of 0 is SOUTH, an angle of 90 would be WEST. |
no test coverage detected