diff options
Diffstat (limited to 'patches/api/0053-Fix-upstream-javadocs.patch')
-rw-r--r-- | patches/api/0053-Fix-upstream-javadocs.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/patches/api/0053-Fix-upstream-javadocs.patch b/patches/api/0053-Fix-upstream-javadocs.patch index 5dd05fb9d8..32785626e3 100644 --- a/patches/api/0053-Fix-upstream-javadocs.patch +++ b/patches/api/0053-Fix-upstream-javadocs.patch @@ -1701,6 +1701,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..8eb18671dd0f93eac143e8449dbee43d49e50621 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 when using this item before it is available for use again. + */ + @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 available for 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 this item to be available for use 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 |