Improve item cooldown JavaDocs

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2022-01-25 08:28:49 +11:00
parent a959ba09e0
commit c9a9a92427

View File

@ -198,6 +198,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* *
* @param material the material to check * @param material the material to check
* @return if a cooldown is active on the material * @return if a cooldown is active on the material
* @throws IllegalArgumentException if the material is not an item
*/ */
public boolean hasCooldown(@NotNull Material material); public boolean hasCooldown(@NotNull Material material);
@ -206,6 +207,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* *
* @param material the material to check * @param material the material to check
* @return the remaining cooldown time in ticks * @return the remaining cooldown time in ticks
* @throws IllegalArgumentException if the material is not an item
*/ */
public int getCooldown(@NotNull Material material); public int getCooldown(@NotNull Material material);
@ -221,6 +223,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* *
* @param material the material to set the cooldown for * @param material the material to set the cooldown for
* @param ticks the amount of ticks to set or 0 to remove * @param ticks the amount of ticks to set or 0 to remove
* @throws IllegalArgumentException if the material is not an item
*/ */
public void setCooldown(@NotNull Material material, int ticks); public void setCooldown(@NotNull Material material, int ticks);