public enum ProfessionType extends java.lang.Enum<ProfessionType>
Enum Constant and Description |
---|
ALCHEMY |
ARMORCRAFTING |
ENCHANTING |
WEAPONCRAFTING |
Modifier and Type | Method and Description |
---|---|
static ProfessionType |
fromString(java.lang.String proTypeName)
Converts profession ID to profession type
|
java.lang.String |
getName()
Returns profession type name for UI
|
java.lang.String |
toString()
Returns type ID
|
static ProfessionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProfessionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProfessionType ARMORCRAFTING
public static final ProfessionType WEAPONCRAFTING
public static final ProfessionType ALCHEMY
public static final ProfessionType ENCHANTING
public static ProfessionType[] values()
for (ProfessionType c : ProfessionType.values()) System.out.println(c);
public static ProfessionType 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 ProfessionType fromString(java.lang.String proTypeName)
proTypeName
- String with type IDpublic java.lang.String toString()
toString
in class java.lang.Enum<ProfessionType>
public java.lang.String getName()