Cloneable
BlockData
.@Deprecated public class Crops extends MaterialData
Modifier and Type | Field | Description |
---|---|---|
protected static CropState |
DEFAULT_STATE |
Deprecated.
|
protected static Material |
DEFAULT_TYPE |
Deprecated.
|
Constructor | Description |
---|---|
Crops() |
Deprecated.
Constructs a wheat crop block in the seeded state.
|
Crops(CropState state) |
Deprecated.
Constructs a wheat crop block in the given growth state
|
Crops(Material type) |
Deprecated.
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) |
Deprecated.
Constructs a crop block of the given type and in the given growth state
|
Modifier and Type | Method | Description |
---|---|---|
Crops |
clone() |
Deprecated.
|
CropState |
getState() |
Deprecated.
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) |
Deprecated.
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
|
String |
toString() |
Deprecated.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
protected 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 String toString()
toString
in class MaterialData
public Crops clone()
clone
in class MaterialData
Copyright © 2019. All rights reserved.