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) Sets the damage per attack.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
itemDamagePerAttack
Sets the damage per attack.- Parameters:
damage
- the damage value.- Returns:
- the builder for chaining.
-
disableBlockingForSeconds
Sets the disable blocking duration (in seconds).- Parameters:
seconds
- the duration in seconds.- Returns:
- the builder for chaining.
-