Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ static ItemDamageFunction.Builder 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);
Expand Down