File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
paper-api/src/main/java/io/papermc/paper/datacomponent/item Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments