Interface Weapon.Builder
- All Superinterfaces:
DataComponentBuilder<Weapon>
- Enclosing interface:
Weapon
@Experimental
@NonExtendable
public static interface Weapon.Builder
extends DataComponentBuilder<Weapon>
Builder for
Weapon.-
Method Summary
Modifier and TypeMethodDescriptiondisableBlockingForSeconds(float seconds) Sets the disable blocking duration (in seconds).itemDamagePerAttack(int damage) Controls the amount of durability to remove each time the weapon is used to attack.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
itemDamagePerAttack
Controls the amount of durability to remove each time the weapon is used to attack.- Parameters:
damage- durability to remove- Returns:
- the builder for chaining
- See Also:
-
disableBlockingForSeconds
Sets the disable blocking duration (in seconds).- Parameters:
seconds- the duration in seconds.- Returns:
- the builder for chaining.
-