接口 WeaponComponent
- 所有超级接口:
ConfigurationSerializable
Represents a component which can turn any item into a weapon.
-
方法概要
修饰符和类型方法说明floatGet the time in seconds which this weapon disabled blocking for.intGet the weapon damage per attack.voidsetDisableBlockingForSeconds(float time) Set the time in seconds which this weapon disabled blocking for.voidsetItemDamagePerAttack(int damage) Set the weapon damage per attack.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getItemDamagePerAttack
int getItemDamagePerAttack()Get the weapon damage per attack.- 返回:
- the damage per attack
-
setItemDamagePerAttack
void setItemDamagePerAttack(int damage) Set the weapon damage per attack.- 参数:
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.- 返回:
- the blocking disable time in seconds
-
setDisableBlockingForSeconds
void setDisableBlockingForSeconds(float time) Set the time in seconds which this weapon disabled blocking for.- 参数:
time- the blocking disable time in seconds
-