java.io.Serializable
, java.lang.Comparable<GrassSpecies>
public enum GrassSpecies extends java.lang.Enum<GrassSpecies>
Enum Constant | Description |
---|---|
DEAD |
Represents the dead looking grass.
|
FERN_LIKE |
Represents the fern-looking grass species.
|
NORMAL |
Represents the normal grass species.
|
Modifier and Type | Method | Description |
---|---|---|
static GrassSpecies |
getByData(byte data) |
Deprecated.
Magic value
|
byte |
getData() |
Deprecated.
Magic value
|
static GrassSpecies |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static GrassSpecies[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrassSpecies DEAD
public static final GrassSpecies NORMAL
public static final GrassSpecies FERN_LIKE
public static GrassSpecies[] values()
for (GrassSpecies c : GrassSpecies.values()) System.out.println(c);
public static GrassSpecies 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 null@Deprecated public byte getData()
@Deprecated public static GrassSpecies getByData(byte data)
data
- Data value to fetchGrassSpecies
representing the given value, or null
if it doesn't existCopyright © 2018. All rights reserved.