Interface WeaponComponent
- All Superinterfaces:
ConfigurationSerializable
Represents a component which can turn any item into a weapon.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the time in seconds which this weapon disabled blocking for.int
Get the weapon damage per attack.void
setDisableBlockingForSeconds
(float time) Set the time in seconds which this weapon disabled blocking for.void
setItemDamagePerAttack
(int damage) Set the weapon damage per attack.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getItemDamagePerAttack
int getItemDamagePerAttack()Get the weapon damage per attack.- Returns:
- the damage per attack
-
setItemDamagePerAttack
void setItemDamagePerAttack(int damage) Set the weapon damage per attack.- Parameters:
damage
- the damage to set. Must be 0 or a positive integer
-
getDisableBlockingForSeconds
float getDisableBlockingForSeconds()Get the time in seconds which this weapon disabled blocking for.- Returns:
- the blocking disable time in seconds
-
setDisableBlockingForSeconds
void setDisableBlockingForSeconds(float time) Set the time in seconds which this weapon disabled blocking for.- Parameters:
time
- the blocking disable time in seconds
-