|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DirtBlock>
net.morbz.minecraft.blocks.DirtBlock
public enum DirtBlock
The class for the dirt and podzol blocks.
Enum Constant Summary | |
---|---|
COARSE_DIRT
|
|
DIRT
|
|
PODZOL
|
Method Summary | |
---|---|
byte |
getBlockData()
Returns the block data. |
byte |
getBlockId()
Returns the block ID. |
int |
getTransparency()
Returns the transparency level of this block. 0 means fully opaque, 1 means fully transparent and values > 1 mean transparent but the light level is decreased by n at this block. |
static DirtBlock |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DirtBlock[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 DirtBlock DIRT
public static final DirtBlock COARSE_DIRT
public static final DirtBlock PODZOL
Method Detail |
---|
public static DirtBlock[] values()
for (DirtBlock c : DirtBlock.values()) System.out.println(c);
public static DirtBlock 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 byte getBlockId()
getBlockId
in interface IBlock
public byte getBlockData()
getBlockData
in interface IBlock
public int getTransparency()
getTransparency
in interface IBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |