java.io.Serializable
, java.lang.Comparable<RawMaterial.Material>
public static enum RawMaterial.Material extends java.lang.Enum<RawMaterial.Material>
Enum Constant | Description |
---|---|
CLOTH |
|
ENERGY |
|
FLESH |
|
GAS |
|
GLASS |
|
LEATHER |
|
LIQUID |
|
METAL |
|
MITHRIL |
|
PAPER |
|
PRECIOUS |
|
ROCK |
|
SYNTHETIC |
|
UNKNOWN |
|
VEGETATION |
|
WOODEN |
Modifier and Type | Method | Description |
---|---|---|
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.
|
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
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 namejava.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 uppublic static RawMaterial.Material find(java.lang.String name)
name
- the exact uppercase material name to look uppublic static RawMaterial.Material findIgnoreCase(java.lang.String name)
name
- the case-insensitive namepublic static RawMaterial.Material startsWith(java.lang.String name)
name
- the name to look for as a prefixpublic static RawMaterial.Material startsWithIgnoreCase(java.lang.String name)
name
- the name to look for as a prefix