Serializable
, Comparable<GrassSpecies>
public enum GrassSpecies extends 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 @Nullable GrassSpecies |
getByData(byte data) |
Deprecated.
Magic value
|
byte |
getData() |
Deprecated.
Magic value
|
static GrassSpecies |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated public byte getData()
@Deprecated @Nullable public static @Nullable GrassSpecies getByData(byte data)
data
- Data value to fetchGrassSpecies
representing the given value, or null
if it doesn't existCopyright © 2020. All rights reserved.