Enum Class MedicalItemType

java.lang.Object
java.lang.Enum<MedicalItemType>
net.chen.legacyLand.player.status.MedicalItemType
All Implemented Interfaces:
Serializable, Comparable<MedicalItemType>, Constable

public enum MedicalItemType extends Enum<MedicalItemType>
医疗物品类型
  • Enum Constant Details

    • BANDAGE

      public static final MedicalItemType BANDAGE
      绷带 - 治疗刀伤、箭伤
    • HERBAL_MEDICINE

      public static final MedicalItemType HERBAL_MEDICINE
      草药包 - 治疗砸伤、水肿、火伤
    • SPLINT

      public static final MedicalItemType SPLINT
      夹板 - 治疗骨折
    • ANTIDOTE

      public static final MedicalItemType ANTIDOTE
      解毒剂 - 治疗中毒
    • HEMOSTATIC_MEDICINE

      public static final MedicalItemType HEMOSTATIC_MEDICINE
      止血药 - 治疗流血
    • PANACEA

      public static final MedicalItemType PANACEA
      万能药 - 治疗所有伤势
  • Method Details

    • values

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

      public static MedicalItemType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromItemId

      public static MedicalItemType fromItemId(String itemId)
      根据物品ID获取医疗物品类型