Skip to content

Commit 056268e

Browse files
[ci skip] Correct javadoc for Weapon Component (#13096)
1 parent fba780d commit 056268e

File tree

1 file changed

+9
-4
lines changed
  • paper-api/src/main/java/io/papermc/paper/datacomponent/item

1 file changed

+9
-4
lines changed

paper-api/src/main/java/io/papermc/paper/datacomponent/item/Weapon.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ static Builder weapon() {
1919
}
2020

2121
/**
22-
* The damage that the weapon deals per attack.
22+
* Amount of durability to remove each time the weapon is used to attack.
23+
*
24+
* @return durability
2325
*/
2426
int itemDamagePerAttack();
2527

2628
/**
2729
* The number of seconds that blocking is disabled.
30+
*
31+
* @return seconds
2832
*/
2933
float disableBlockingForSeconds();
3034

@@ -36,10 +40,11 @@ static Builder weapon() {
3640
interface Builder extends DataComponentBuilder<Weapon> {
3741

3842
/**
39-
* Sets the damage per attack.
43+
* Controls the amount of durability to remove each time the weapon is used to attack.
4044
*
41-
* @param damage the damage value.
42-
* @return the builder for chaining.
45+
* @param damage durability to remove
46+
* @return the builder for chaining
47+
* @see #itemDamagePerAttack()
4348
*/
4449
Builder itemDamagePerAttack(int damage);
4550

0 commit comments

Comments
 (0)