Skip to content

Instantly share code, notes, and snippets.

@Jezza
Created January 31, 2014 13:20
Show Gist options
  • Select an option

  • Save Jezza/8731987 to your computer and use it in GitHub Desktop.

Select an option

Save Jezza/8731987 to your computer and use it in GitHub Desktop.
public static int getCurrentMousedOverSide(EntityPlayer player) {
MovingObjectPosition mouseOver = getCurrentMovingObjectPosition(player);
return mouseOver == null ? 0 : mouseOver.sideHit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment