Enum ItemType

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

public enum ItemType
extends java.lang.Enum<ItemType>
  • 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
    AlarmClock  
    Clothing  
    Drainable  
    Food  
    index  
    Key  
    KeyRing  
    Literature  
    Moveable  
    None  
    Weapon  
  • Method Summary

    Modifier and Type Method Description
    static ItemType fromIndex​(int int1)  
    int index()  
    static ItemType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ItemType[] 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, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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
    • index

      public static final ItemType index
  • Method Details

    • values

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

      public int index()
    • fromIndex

      public static ItemType fromIndex​(int int1)