Enum Class DamagePoint
- All Implemented Interfaces:
Serializable,Comparable<DamagePoint>,Constable
This class highlights different points in a hit box. Basically having child hit boxes inside of
parent hit boxes
Back-stabs are not in here because a back-stab may also be head-shot, or a leg shot. It makes more sense for back-stabs to be handled outside of this class because
Note that the rules defined here are fairly generalized. Entities that are horizontal (Like sheep, cows, etc.) are going to have slightly different rules than vertical mobs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DamagePointReturns the enum constant of this class with the specified name.static DamagePoint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
If the damage is hitting head -
BODY
If the damage is hitting body -
ARMS
If the damage is hitting body AND the damage came from the side (35 degrees from the side maximum) -
LEGS
If the damage is hitting legs -
FEET
If the damage is hitting feet
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getReadable
-