From 7751625572ce042a583a8c3280186ed2706d16b3 Mon Sep 17 00:00:00 2001 From: leguan Date: Sat, 2 Nov 2024 14:24:51 +0100 Subject: [PATCH] fix UseCooldownComponent jd --- patches/api/0053-Fix-upstream-javadocs.patch | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/patches/api/0053-Fix-upstream-javadocs.patch b/patches/api/0053-Fix-upstream-javadocs.patch index cb77c4cd8262..ab4c319a420c 100644 --- a/patches/api/0053-Fix-upstream-javadocs.patch +++ b/patches/api/0053-Fix-upstream-javadocs.patch @@ -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