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 this item to be eaten.void
Sets the custom cooldown group to be used for similar items.void
setCooldownSeconds
(float eatSeconds) Sets the time in seconds it will take for this item to be eaten.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getCooldownSeconds
float getCooldownSeconds()Gets the time in seconds it will take for this item to be eaten.- Returns:
- eat time
-
setCooldownSeconds
void setCooldownSeconds(float eatSeconds) Sets the time in seconds it will take for this item to be eaten.- Parameters:
eatSeconds
- new eat time, must be positive
-
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
-