BodyPartsAPI icon

BodyPartsAPI -----

An API that allows you to check if a location is inside a player and get the body part it is in



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
Resource Information
Author:
----------
Total Downloads: 52
First Release: Jan 21, 2022
Last Update: Jan 21, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings