Enum Constant and Description |
---|
BRICK |
DESERT |
ORE |
SHEEP |
WATER |
WHEAT |
WOOD |
Modifier and Type | Method and Description |
---|---|
static HexType |
GetFromResource(ResourceType type) |
static HexType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HexType WOOD
public static final HexType BRICK
public static final HexType SHEEP
public static final HexType WHEAT
public static final HexType ORE
public static final HexType DESERT
public static final HexType WATER
public static HexType[] values()
for (HexType c : HexType.values()) System.out.println(c);
public static HexType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HexType GetFromResource(ResourceType type)