DESCRIPTION:
This is a simple API that allows you to check if a location is inside a players body and get the exact part that is it in or get the location of that said part for a specific player. Dividing the player's body into six parts:
RIGHT_LEG, LEFT_LEG, BODY, RIGHT_ARM, LEFT_ARM, HEAD
USAGE:
Note: the calculations are not 100% accurate due to the limitation of what can the API provide.
How to get the body part a location is in:
Code (Text):
locationToBodyPart(Player p, Location loc);
Will return null if the location is not inside the player.
How to get the location of a body part:
Code (Text):
getBodyPartLocation(Entity p, BodyPart part)
Will return BodyPartsAPI.BodyPart