Package org.bukkit
Enum Class CropState
- All Implemented Interfaces:
Serializable
,Comparable<CropState>
,Constable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the different growth states of crops
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.First growth stageDeprecated, for removal: This API element is subject to removal in a future version.Fourth growth stageDeprecated, for removal: This API element is subject to removal in a future version.Ripe stageDeprecated, for removal: This API element is subject to removal in a future version.State when first seededDeprecated, for removal: This API element is subject to removal in a future version.Third growth stageDeprecated, for removal: This API element is subject to removal in a future version.Fifth growth stageDeprecated, for removal: This API element is subject to removal in a future version.Second growth stageDeprecated, for removal: This API element is subject to removal in a future version.Almost ripe stage -
Method Summary
Modifier and TypeMethodDescriptiongetByData
(byte data) Deprecated.Magic valuebyte
getData()
Deprecated.Magic valuestatic CropState
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static CropState[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEEDED
Deprecated, for removal: This API element is subject to removal in a future version.State when first seeded -
GERMINATED
Deprecated, for removal: This API element is subject to removal in a future version.First growth stage -
VERY_SMALL
Deprecated, for removal: This API element is subject to removal in a future version.Second growth stage -
SMALL
Deprecated, for removal: This API element is subject to removal in a future version.Third growth stage -
MEDIUM
Deprecated, for removal: This API element is subject to removal in a future version.Fourth growth stage -
TALL
Deprecated, for removal: This API element is subject to removal in a future version.Fifth growth stage -
VERY_TALL
Deprecated, for removal: This API element is subject to removal in a future version.Almost ripe stage -
RIPE
Deprecated, for removal: This API element is subject to removal in a future version.Ripe stage
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getData
Deprecated.Magic valueGets the associated data value representing this growth state- Returns:
- A byte containing the data value of this growth state
-
getByData
Deprecated.Magic valueGets the CropState with the given data value- Parameters:
data
- Data value to fetch- Returns:
- The
CropState
representing the given value, or null if it doesn't exist
-