java.lang.Cloneablepublic class Crops extends MaterialData
| Modifier and Type | Field | Description | 
|---|---|---|
| protected static CropState | DEFAULT_STATE | |
| protected static Material | DEFAULT_TYPE | 
| Constructor | Description | 
|---|---|
| Crops() | Constructs a wheat crop block in the seeded state. | 
| Crops(CropState state) | Constructs a wheat crop block in the given growth state | 
| Crops(Material type) | Constructs a crop block of the given type and in the seeded state | 
| Crops(Material type,
     byte data) | Deprecated.
 Magic value | 
| Crops(Material type,
     CropState state) | Constructs a crop block of the given type and in the given growth state | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Crops | clone() | |
| CropState | getState() | 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. | 
| void | setState(CropState state) | 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 | 
| java.lang.String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackprotected static final Material DEFAULT_TYPE
protected static final CropState DEFAULT_STATE
public Crops()
public Crops(CropState state)
state - The growth state of the cropspublic Crops(Material type, CropState state)
type - The type of cropsstate - The growth state of the cropspublic Crops(Material type)
type - The type of crops@Deprecated public Crops(Material type, byte data)
type - the typedata - the raw data valuepublic CropState getState()
public void setState(CropState state)
state - New growth state of this croppublic java.lang.String toString()
toString in class MaterialDatapublic Crops clone()
clone in class MaterialDataCopyright © 2018. All rights reserved.