Enum Class ItemType

java.lang.Object
java.lang.Enum<ItemType>
zombie.inventory.ItemType
All Implemented Interfaces:
Serializable, Comparable<ItemType>, Constable

public enum ItemType extends Enum<ItemType>
  • Enum Constant Details

    • None

      public static final ItemType None
    • Weapon

      public static final ItemType Weapon
    • Food

      public static final ItemType Food
    • Literature

      public static final ItemType Literature
    • Drainable

      public static final ItemType Drainable
    • Clothing

      public static final ItemType Clothing
    • Key

      public static final ItemType Key
    • KeyRing

      public static final ItemType KeyRing
    • Moveable

      public static final ItemType Moveable
    • AlarmClock

      public static final ItemType AlarmClock
    • AlarmClockClothing

      public static final ItemType AlarmClockClothing
  • Method Details

    • values

      public static ItemType[] 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 ItemType 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
    • index

      public int index()
    • fromIndex

      public static ItemType fromIndex(int value)