Interface UseCooldownComponent
- All Superinterfaces:
ConfigurationSerializable
Represents a component which determines the cooldown applied to use of this
item.
-
Method Summary
Modifier and TypeMethodDescriptionGets 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.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getCooldownSeconds
float getCooldownSeconds()Gets the time in seconds it will take for an item in this cooldown group to be available to use again.- Returns:
- 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.- Parameters:
cooldown
- new eat time, must be greater than 0
-
getCooldownGroup
Gets the custom cooldown group to be used for similar items, if set.- Returns:
- the cooldown group
-
setCooldownGroup
Sets the custom cooldown group to be used for similar items.- Parameters:
song
- the cooldown group
-