Package zombie.characters.BodyDamage
Enum BodyPartType
java.lang.Object
java.lang.Enum<BodyPartType>
zombie.characters.BodyDamage.BodyPartType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BodyPartType>,java.lang.constant.Constable
public enum BodyPartType extends java.lang.Enum<BodyPartType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description $SWITCH_TABLE$zombie$characters$BodyDamage$BodyPartTypeFoot_LFoot_RForeArm_LForeArm_RGroinHand_LHand_RHeadLowerLeg_LLowerLeg_RMAXNeckTorso_LowerTorso_UpperUpperArm_LUpperArm_RUpperLeg_LUpperLeg_R -
Method Summary
Modifier and Type Method Description static BodyPartTypeFromIndex(int index)static BodyPartTypeFromString(java.lang.String str)static floatgetDamageModifyer(int index)static java.lang.StringgetDisplayName(BodyPartType BPT)static floatgetPainModifyer(int index)static intToIndex(BodyPartType BPT)static java.lang.StringToString(BodyPartType BPT)static BodyPartTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BodyPartType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
Hand_L
-
Hand_R
-
ForeArm_L
-
ForeArm_R
-
UpperArm_L
-
UpperArm_R
-
Torso_Upper
-
Torso_Lower
-
Head
-
Neck
-
Groin
-
UpperLeg_L
-
UpperLeg_R
-
LowerLeg_L
-
LowerLeg_R
-
Foot_L
-
Foot_R
-
MAX
-
$SWITCH_TABLE$zombie$characters$BodyDamage$BodyPartType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
FromIndex
-
FromString
-
getPainModifyer
public static float getPainModifyer(int index) -
getDisplayName
-
ToIndex
-
ToString
-
getDamageModifyer
public static float getDamageModifyer(int index)
-