Fix copy pasting in UseCooldownComponent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-11-12 20:37:54 +11:00
parent c5deb83324
commit 471ecd8e4a

View file

@ -13,18 +13,20 @@ import org.jetbrains.annotations.Nullable;
public interface UseCooldownComponent extends ConfigurationSerializable { public interface UseCooldownComponent extends ConfigurationSerializable {
/** /**
* Gets the time in seconds it will take for this item to be eaten. * Gets the time in seconds it will take for an item in this cooldown group
* to be available to use again.
* *
* @return eat time * @return cooldown time
*/ */
float getCooldownSeconds(); float getCooldownSeconds();
/** /**
* Sets the time in seconds it will take for this item to be eaten. * Sets the time in seconds it will take for an item in this cooldown group
* to be available to use again.
* *
* @param eatSeconds new eat time, must be positive * @param cooldown new eat time, must be greater than 0
*/ */
void setCooldownSeconds(float eatSeconds); void setCooldownSeconds(float cooldown);
/** /**
* Gets the custom cooldown group to be used for similar items, if set. * Gets the custom cooldown group to be used for similar items, if set.