接口 UseCooldownComponent
- 所有超级接口:
ConfigurationSerializable
Represents a component which determines the cooldown applied to use of this
item.
-
方法概要
修饰符和类型方法说明Gets the custom cooldown group to be used for similar items, if set.float
Gets the time in seconds it will take for an item in this cooldown group to be available to use again.void
Sets the custom cooldown group to be used for similar items.void
setCooldownSeconds
(float cooldown) Sets the time in seconds it will take for an item in this cooldown group to be available to use again.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getCooldownSeconds
float getCooldownSeconds()Gets the time in seconds it will take for an item in this cooldown group to be available to use again.- 返回:
- cooldown time
-
setCooldownSeconds
void setCooldownSeconds(float cooldown) Sets the time in seconds it will take for an item in this cooldown group to be available to use again.- 参数:
cooldown
- new eat time, must be greater than 0
-
getCooldownGroup
Gets the custom cooldown group to be used for similar items, if set.- 返回:
- the cooldown group
-
setCooldownGroup
Sets the custom cooldown group to be used for similar items.- 参数:
song
- the cooldown group
-