public class Crops extends MaterialData
Constructor and Description |
---|
Crops() |
Crops(CropState state) |
Crops(int type)
Deprecated.
Magic value
|
Crops(int type,
byte data)
Deprecated.
Magic value
|
Crops(Material type) |
Crops(Material type,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
Crops |
clone() |
CropState |
getState()
Gets the current growth state of this crop
|
void |
setState(CropState state)
Sets the growth state of this crop
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Crops()
public Crops(CropState state)
@Deprecated public Crops(int type)
type
- the raw type idpublic Crops(Material type)
@Deprecated public Crops(int type, byte data)
type
- the raw type iddata
- the raw data value@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 String toString()
toString
in class MaterialData
public Crops clone()
clone
in class MaterialData
Copyright © 2016. All rights reserved.