Enum Class ItemType

java.lang.Object
java.lang.Enum<ItemType>
com.csse3200.game.components.items.ItemType
All Implemented Interfaces:
Serializable, Comparable<ItemType>, Constable

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

    • SHOVEL

      public static final ItemType SHOVEL
    • HOE

      public static final ItemType HOE
    • WATERING_CAN

      public static final ItemType WATERING_CAN
    • SCYTHE

      public static final ItemType SCYTHE
    • SWORD

      public static final ItemType SWORD
    • GUN

      public static final ItemType GUN
    • TELEPORT_DEVICE

      public static final ItemType TELEPORT_DEVICE
    • MILK

      public static final ItemType MILK
    • EGG

      public static final ItemType EGG
    • FOOD

      public static final ItemType FOOD
    • FERTILISER

      public static final ItemType FERTILISER
    • SEED

      public static final ItemType SEED
    • ANIMAL_FOOD

      public static final ItemType ANIMAL_FOOD
    • SHIP_PART

      public static final ItemType SHIP_PART
    • CLUE_ITEM

      public static final ItemType CLUE_ITEM
    • FISHING_ROD

      public static final ItemType FISHING_ROD
    • PLACEABLE

      public static final ItemType PLACEABLE
  • 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