Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.material |
Classes that represents various voxel types and states.
|
Modifier and Type | Method | Description |
---|---|---|
static CropState |
CropState.getByData(byte data) |
Deprecated.
Magic value
|
static CropState |
CropState.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CropState[] |
CropState.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field | Description |
---|---|---|
protected static CropState |
Crops.DEFAULT_STATE |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
CropState |
Crops.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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Crops.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
|
Constructor | Description |
---|---|
Crops(CropState state) |
Deprecated.
Constructs a wheat crop block in the given growth state
|
Crops(Material type,
CropState state) |
Deprecated.
Constructs a crop block of the given type and in the given growth state
|
Copyright © 2019. All rights reserved.