Package org.bukkit.material
Class Crops
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Crops
- All Implemented Interfaces:
- Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the different types of crops in different states of growth.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCrops()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a wheat crop block in the seeded state.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a wheat crop block in the given growth stateDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the seeded stateDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the given growth state
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.getState()Deprecated, for removal: This API element is subject to removal in a future version.Gets the current growth state of this crop For crops with only four growth states such as beetroot, only the values SEEDED, SMALL, TALL and RIPE will be returned.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets the growth state of this crop For crops with only four growth states such as beetroot, the 8 CropStates are mapped into four states: SEEDED, SMALL, TALL and RIPE GERMINATED will change to SEEDED VERY_SMALL will change to SMALL MEDIUM will change to TALL VERY_TALL will change to RIPEtoString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.
- 
DEFAULT_STATEDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Constructor Details- 
Cropspublic Crops()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a wheat crop block in the seeded state.
- 
CropsDeprecated, for removal: This API element is subject to removal in a future version.Constructs a wheat crop block in the given growth state- Parameters:
- state- The growth state of the crops
 
- 
CropsDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the given growth state- Parameters:
- type- The type of crops
- state- The growth state of the crops
 
- 
CropsDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the seeded state- Parameters:
- type- The type of crops
 
- 
CropsDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
getStateDeprecated, for removal: This API element is subject to removal in a future version.Gets the current growth state of this crop For crops with only four growth states such as beetroot, only the values SEEDED, SMALL, TALL and RIPE will be returned.- Returns:
- CropState of this crop
 
- 
setStateDeprecated, for removal: This API element is subject to removal in a future version.Sets the growth state of this crop For crops with only four growth states such as beetroot, the 8 CropStates are mapped into four states: SEEDED, SMALL, TALL and RIPE GERMINATED will change to SEEDED VERY_SMALL will change to SMALL MEDIUM will change to TALL VERY_TALL will change to RIPE- Parameters:
- state- New growth state of this crop
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.