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>
  • Enum Constant Details

  • Method Details

    • values

      public static BodyPartType[] 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

      public static BodyPartType valueOf​(java.lang.String name)
      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 name
      java.lang.NullPointerException - if the argument is null
    • FromIndex

      public static BodyPartType FromIndex​(int index)
    • FromString

      public static BodyPartType FromString​(java.lang.String str)
    • getPainModifyer

      public static float getPainModifyer​(int index)
    • getDisplayName

      public static java.lang.String getDisplayName​(BodyPartType BPT)
    • ToIndex

      public static int ToIndex​(BodyPartType BPT)
    • ToString

      public static java.lang.String ToString​(BodyPartType BPT)
    • getDamageModifyer

      public static float getDamageModifyer​(int index)