Enum Class Materials

java.lang.Object
java.lang.Enum<Materials>
com.deco2800.game.crafting.Materials
All Implemented Interfaces:
Serializable, Comparable<Materials>, Constable

public enum Materials extends Enum<Materials>
Public enum that contains all the possible base materials that could be used for crafting items.
  • Enum Constant Details

    • Gold

      public static final Materials Gold
    • Iron

      public static final Materials Iron
    • Steel

      public static final Materials Steel
    • Wood

      public static final Materials Wood
    • Plastic

      public static final Materials Plastic
    • Rubber

      public static final Materials Rubber
    • Platinum

      public static final Materials Platinum
    • Silver

      public static final Materials Silver
    • HerraDag

      public static final Materials HerraDag
    • Poop

      public static final Materials Poop
    • ToiletPaper

      public static final Materials ToiletPaper
  • Method Details

    • values

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