Skip to content

Commit

Permalink
fix UseCooldownComponent jd
Browse files Browse the repository at this point in the history
  • Loading branch information
Leguan16 committed Nov 2, 2024
1 parent 92131ad commit 7751625
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions patches/api/0053-Fix-upstream-javadocs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,52 @@ index 43f0df04f3cdff7d7db73321a2886f3a737e3c9f..5c741228b2338a7c4de2fe736eb78951
*/
public interface OminousBottleMeta extends ItemMeta {

diff --git a/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java b/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java
index 04b4b08021a841542b3d5e6f3f1c465af3899281..7bebb27b08bb8f97cbe4cb7743c15dfeeed613a7 100644
--- a/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java
+++ b/src/main/java/org/bukkit/inventory/meta/components/UseCooldownComponent.java
@@ -6,25 +6,24 @@ import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;

/**
- * Represents a component which determines the cooldown applied to use of this
- * item.
+ * Represents a component which determines the cooldown applied to use this item.
*/
@ApiStatus.Experimental
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 this item to be used 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 this item to be used again.
*
- * @param eatSeconds new eat time, must be positive
+ * @param cooldownSeconds new cooldown time, must be positive
*/
- void setCooldownSeconds(float eatSeconds);
+ void setCooldownSeconds(float cooldownSeconds);

/**
* Gets the custom cooldown group to be used for similar items, if set.
@@ -37,7 +36,7 @@ public interface UseCooldownComponent extends ConfigurationSerializable {
/**
* Sets the custom cooldown group to be used for similar items.
*
- * @param song the cooldown group
+ * @param group the cooldown group
*/
- void setCooldownGroup(@Nullable NamespacedKey song);
+ void setCooldownGroup(@Nullable NamespacedKey group);
}
diff --git a/src/main/java/org/bukkit/plugin/Plugin.java b/src/main/java/org/bukkit/plugin/Plugin.java
index 8c76716249e44ed8bf6be94c1f5c7b6d9bb35be2..68a0ed5f0ed25e98f4ab4d1e482ec2ccfda9cd3a 100644
--- a/src/main/java/org/bukkit/plugin/Plugin.java
Expand Down

0 comments on commit 7751625

Please sign in to comment.