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 this item to be eaten.voidSets the custom cooldown group to be used for similar items.voidsetCooldownSeconds(float eatSeconds) Sets the time in seconds it will take for this item to be eaten.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserialize
- 
Method Details- 
getCooldownSecondsfloat getCooldownSeconds()Gets the time in seconds it will take for this item to be eaten.- Returns:
- eat time
 
- 
setCooldownSecondsvoid 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
 
- 
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
 
 
-