类 Crops
- 所有已实现的接口:
Cloneable
-
字段概要
-
构造器概要
-
方法概要
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
DEFAULT_TYPE
-
DEFAULT_STATE
-
-
构造器详细资料
-
Crops
public Crops()构造一个处于播种阶段的小麦作物方块.原文:Constructs a wheat crop block in the seeded state.
-
Crops
构造一个处于给定生长阶段的小麦作物方块.原文:Constructs a wheat crop block in the given growth state
- 参数:
state
- 农作物的生长阶段
-
Crops
构造一个处于给定生长阶段的给定类型的农作物方块.原文:Constructs a crop block of the given type and in the given growth state
- 参数:
type
- 农作物类型state
- 农作物的生长阶段
-
Crops
已过时。不安全的参数- 参数:
type
- the raw type id
-
Crops
构造一个处于播种阶段的给定类型的农作物.原文:Constructs a crop block of the given type and in the seeded state
- 参数:
type
- 农作物类型
-
Crops
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Crops
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
getState
获取这个农作物的生长阶段.对于像是甜菜根这样只有四个生长阶段的农作物,只会返回这四个值:SEEDED、SMALL、TALL、RIPE.
原文: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.
- 返回:
- 农作物的CropState
-
setState
设置这个农作物的生长阶段.对于像是甜菜根这样只有四个生长阶段的农作物,这8个生长阶段分别映射为这四个阶段: SEEDED, SMALL, TALL 和 RIPE GERMINATED 会改为 SEEDED VERY_SMALL 会改为 SMALL MEDIUM 会改为 TALL VERY_TALL 会改为 RIPE
原文: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
- 参数:
state
- 农作物的生长阶段
-
toString
- 覆盖:
toString
在类中MaterialData
-
clone
- 覆盖:
clone
在类中MaterialData
-