mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 05:30:23 -07:00
[ci skip] Fix format and mentions for ItemDamageFunction (#12560)
This commit is contained in:
parent
cc38032bee
commit
358786774c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user