[ci skip] Fix format and mentions for ItemDamageFunction (#12560)

This commit is contained in:
Pedro 2025-05-18 13:23:52 -04:00 committed by GitHub
parent cc38032bee
commit 358786774c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,14 +40,14 @@ public interface ItemDamageFunction {
/**
* Get the fraction of the dealt damage that should be applied to the item, if threshold is passed.
*
* @return the base
* @return the factor
*/
float factor();
/**
* Get the damage to apply for the item.
*
* @apiNote this doesn't apply enchantments like {@link org.bukkit.enchantments.Enchantment#UNBREAKING}}
* @apiNote this doesn't apply enchantments like {@link org.bukkit.enchantments.Enchantment#UNBREAKING}
* @return the damage to apply
*/
int damageToApply(float damage);