类 Crops
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Crops
- 所有已实现的接口:
Cloneable
已过时。
Represents the different types of crops in different states of growth.
-
字段概要
-
构造器概要
构造器说明Crops()
已过时。Constructs a wheat crop block in the seeded state.已过时。Constructs a wheat crop block in the given growth state已过时。Constructs a crop block of the given type and in the seeded state已过时。Magic value已过时。Constructs a crop block of the given type and in the given growth state -
方法概要
修饰符和类型方法说明clone()
已过时。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
已过时。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 RIPEtoString()
已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, 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
- The growth state of the crops
-
Crops
已过时。Constructs a crop block of the given type and in the given growth state- 参数:
type
- The type of cropsstate
- The growth state of the crops
-
Crops
已过时。Constructs a crop block of the given type and in the seeded state- 参数:
type
- The type of crops
-
Crops
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
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.- 返回:
- CropState of this crop
-
setState
已过时。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
- New growth state of this crop
-
toString
已过时。- 覆盖:
toString
在类中MaterialData
-
clone
已过时。- 覆盖:
clone
在类中MaterialData
-
BlockData
.