MCPcopy Create free account
hub / github.com/PaperMC/Paper / rotateClockwise

Method rotateClockwise

paper-api/src/main/java/org/bukkit/Rotation.java:53–56  ·  view source on GitHub ↗

Rotate clockwise by 90 degrees. @return the relative rotation

()

Source from the content-addressed store, hash-verified

51 * @return the relative rotation
52 */
53 @NotNull
54 public Rotation rotateClockwise() {
55 return rotations[(this.ordinal() + 1) & 0x7];
56 }
57
58 /**
59 * Rotate counter-clockwise by 90 degrees.

Callers

nothing calls this directly

Calls 1

ordinalMethod · 0.65

Tested by

no test coverage detected