MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getHorizontal

Method getHorizontal

src/main/java/net/minecraft/util/EnumFacing.java:273–276  ·  view source on GitHub ↗

Get a Facing by it's horizontal index (0-3). The order is S-W-N-E.

(int p_176731_0_)

Source from the content-addressed store, hash-verified

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.

Callers 15

handleSpawnObjectMethod · 0.95
onItemUseMethod · 0.95
readPacketDataMethod · 0.95
readStructureFromNBTMethod · 0.95
readStructureBaseNBTMethod · 0.95
getMetadataWithOffsetMethod · 0.95
addComponentPartsMethod · 0.95
addComponentPartsMethod · 0.95
addComponentPartsMethod · 0.95
addComponentPartsMethod · 0.95
addComponentPartsMethod · 0.95
getStateFromMetaMethod · 0.95

Calls 1

abs_intMethod · 0.95

Tested by

no test coverage detected