mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Improve item cooldown JavaDocs
This commit is contained in:
parent
2af60c8067
commit
6db1ab707a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue