Interface UseCooldownComponent
- All Superinterfaces:
- ConfigurationSerializable
Represents a component which determines the cooldown applied to use of this
 item.
- 
Method SummaryModifier and TypeMethodDescriptionGets the custom cooldown group to be used for similar items, if set.floatGets the time in seconds it will take for an item in this cooldown group to be available to use again.voidSets the custom cooldown group to be used for similar items.voidsetCooldownSeconds(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.ConfigurationSerializableserialize
- 
Method Details- 
getCooldownSecondsfloat 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
 
- 
setCooldownSecondsvoid 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
 
- 
getCooldownGroupGets the custom cooldown group to be used for similar items, if set.- Returns:
- the cooldown group
 
- 
setCooldownGroupSets the custom cooldown group to be used for similar items.- Parameters:
- song- the cooldown group
 
 
-