mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Fix copy pasting in UseCooldownComponent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c5deb83324
commit
471ecd8e4a
1 changed files with 7 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue