public enum DirtType extends Enum<DirtType>
Enum Constant and Description |
---|
COARSE
Represents the coarse dirt type.
|
NORMAL
Represents the regular dirt type.
|
PODZOL
Represents the Podzol dirt type.
|
Modifier and Type | Method and Description |
---|---|
static DirtType |
getByData(byte data)
Deprecated.
Magic value
|
byte |
getData()
Deprecated.
Magic value
|
static DirtType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirtType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirtType NORMAL
public static final DirtType COARSE
public static final DirtType PODZOL
public static DirtType[] values()
for (DirtType c : DirtType.values()) System.out.println(c);
public static DirtType 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 public static DirtType getByData(byte data)
data
- The data value to fetchDirtType
representing the given value, or null
if it doesn't existCopyright © 2021. All rights reserved.