|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CropState>
org.bukkit.CropState
public enum CropState
Represents the different growth states of crops
| Enum Constant Summary | |
|---|---|
GERMINATED
First growth stage |
|
MEDIUM
Fourth growth stage |
|
RIPE
Ripe stage |
|
SEEDED
State when first seeded |
|
SMALL
Third growth stage |
|
TALL
Fifth growth stage |
|
VERY_SMALL
Second growth stage |
|
VERY_TALL
Almost ripe stage |
|
| Method Summary | |
|---|---|
static CropState |
getByData(byte data)
Deprecated. Magic value |
byte |
getData()
Deprecated. Magic value |
static CropState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CropState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, 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 CropState SEEDED
public static final CropState GERMINATED
public static final CropState VERY_SMALL
public static final CropState SMALL
public static final CropState MEDIUM
public static final CropState TALL
public static final CropState VERY_TALL
public static final CropState RIPE
| Method Detail |
|---|
public static CropState[] values()
for (CropState c : CropState.values()) System.out.println(c);
public static CropState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null@Deprecated public byte getData()
@Deprecated public static CropState getByData(byte data)
data - Data value to fetch
CropState representing the given value, or null if
it doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||