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

Method getFront

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

renderTileEntityAtMethod · 0.95
readPacketDataMethod · 0.95
readFromNBTMethod · 0.95
getMetadataWithOffsetMethod · 0.95
addComponentPartsMethod · 0.95
func_175836_aMethod · 0.95
getFacingMethod · 0.95
getStateFromMetaMethod · 0.95
getStateFromMetaMethod · 0.95
getStateFromMetaMethod · 0.95
getStateFromMetaMethod · 0.95

Calls 1

abs_intMethod · 0.95

Tested by

no test coverage detected