Skip to content

Commit

Permalink
rename BlockFace#getHorizontalId to adhere to naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Nov 8, 2024
1 parent 4167c94 commit da71044
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,16 @@ public BlockFace getCW() {
}
}

/** Returns int representing cardinal directions with south as the starting index at 0. UP and DOWN return -1
/**
* Returns an integer representing cardinal directions with south as the starting index at 0. UP and DOWN return -1
* <p>
* Used by Mojang for calculations involving mob AI, decorations, paintings, item frames, maps,
* structure generation, campfires, stairs, connecting blocks, and flowerbeds.
* Also used for getting Directions and Blockfaces as Rotations.
* Also used for getting directions and block faces as rotations.
*
* @return int horizontal id
* @return integer horizontal id
*/
public int getHorizontalID() {
public int getHorizontalId() {
switch (this) {
case DOWN:
case UP:
Expand All @@ -175,7 +176,7 @@ public int getHorizontalID() {
case EAST:
return 3;
default:
throw new IllegalArgumentException("Invalid blockface input for getHorizontalID");
throw new IllegalArgumentException("Invalid block face input for getHorizontalId");
}
}

Expand Down

0 comments on commit da71044

Please sign in to comment.