public class Crops extends MaterialData
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static CropState |
DEFAULT_STATE |
protected static Material |
DEFAULT_TYPE |
| コンストラクタと説明 |
|---|
Crops()
Constructs a wheat crop block in the seeded state.
|
Crops(CropState state)
Constructs a wheat crop block in the given growth state
|
Crops(int type)
非推奨です。
Magic value
|
Crops(int type,
byte data)
非推奨です。
Magic value
|
Crops(Material type)
Constructs a crop block of the given type and in the seeded state
|
Crops(Material type,
byte data)
非推奨です。
Magic value
|
Crops(Material type,
CropState state)
Constructs a crop block of the given type and in the given growth state
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, 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 crops@Deprecated public Crops(int type)
type - the raw type idpublic Crops(Material type)
type - The type of crops@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 クラス内 MaterialDatapublic Crops clone()
clone クラス内 MaterialDataCopyright © 2016. All rights reserved.