|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RawMaterial.Material>
com.planet_ink.coffee_mud.Items.interfaces.RawMaterial.Material
public static enum RawMaterial.Material
An enum of all the basic material types, allowing lookups and such
Enum Constant Summary | |
---|---|
CLOTH
|
|
ENERGY
|
|
FLESH
|
|
GAS
|
|
GLASS
|
|
LEATHER
|
|
LIQUID
|
|
METAL
|
|
MITHRIL
|
|
PAPER
|
|
PRECIOUS
|
|
ROCK
|
|
SYNTHETIC
|
|
UNKNOWN
|
|
VEGETATION
|
|
WOODEN
|
Method Summary | |
---|---|
java.lang.String |
desc()
Gets the coded enum uppercase name of this material. |
static RawMaterial.Material |
find(java.lang.String name)
Gets the material enum object given the exact uppercase name. |
static RawMaterial.Material |
findByMask(int mask)
Gets the material enum object given the material code |
static RawMaterial.Material |
findIgnoreCase(java.lang.String name)
Gets the material enum object given the case-insensitive name. |
int |
mask()
The 2nd byte material code mask |
static java.lang.String[] |
names()
Gets the list of all enum material code uppercase names |
java.lang.String |
noun()
Gets the friendly name of the material |
static int |
size()
The number of basic materials |
static RawMaterial.Material |
startsWith(java.lang.String name)
Searches for the first material enum that starts with the given name |
static RawMaterial.Material |
startsWithIgnoreCase(java.lang.String name)
Searches for the first material enum that starts with the given case-insensitive name |
static RawMaterial.Material |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RawMaterial.Material[] |
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RawMaterial.Material UNKNOWN
public static final RawMaterial.Material CLOTH
public static final RawMaterial.Material LEATHER
public static final RawMaterial.Material METAL
public static final RawMaterial.Material MITHRIL
public static final RawMaterial.Material WOODEN
public static final RawMaterial.Material GLASS
public static final RawMaterial.Material VEGETATION
public static final RawMaterial.Material FLESH
public static final RawMaterial.Material PAPER
public static final RawMaterial.Material ROCK
public static final RawMaterial.Material LIQUID
public static final RawMaterial.Material PRECIOUS
public static final RawMaterial.Material ENERGY
public static final RawMaterial.Material SYNTHETIC
public static final RawMaterial.Material GAS
Method Detail |
---|
public static RawMaterial.Material[] values()
for (RawMaterial.Material c : RawMaterial.Material.values()) System.out.println(c);
public static RawMaterial.Material 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 name
java.lang.NullPointerException
- if the argument is nullpublic static int size()
public int mask()
public java.lang.String noun()
public java.lang.String desc()
public static java.lang.String[] names()
public static RawMaterial.Material findByMask(int mask)
mask
- the material code to look up
public static RawMaterial.Material find(java.lang.String name)
name
- the exact uppercase material name to look up
public static RawMaterial.Material findIgnoreCase(java.lang.String name)
name
- the case-insensitive name
public static RawMaterial.Material startsWith(java.lang.String name)
name
- the name to look for as a prefix
public static RawMaterial.Material startsWithIgnoreCase(java.lang.String name)
name
- the name to look for as a prefix
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |