From 471ecd8e4aa1e00a43baf41976fdcde77263ba9c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 12 Nov 2024 20:37:54 +1100 Subject: [PATCH] Fix copy pasting in UseCooldownComponent By: md_5 --- .../meta/components/UseCooldownComponent.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java b/paper-api/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java index 04b4b08021..4086a41389 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java @@ -13,18 +13,20 @@ import org.jetbrains.annotations.Nullable; 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(); /** - * 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.