接口 KineticWeaponComponent
- 所有超级接口:
ConfigurationSerializable
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明int获取武器击中实体后可以再次使用前的延迟。获取武器对目标造成伤害所需的条件。float获取基于目标和攻击者相对速度的最终伤害倍率。int获取武器可以使用前的延迟。获取武器使目标下马所需的条件。float获取物品的前移动画。获取物品成功击中目标时播放的音效。获取武器击退目标所需的条件。getSound()获取使用物品时播放的音效。voidsetContactCooldownTicks(int ticks) 设置武器击中实体后可以再次使用前的延迟。void设置武器对目标造成伤害所需的条件。voidsetDamageMultipler(float multiplier) 设置基于目标和攻击者相对速度的最终伤害倍率。voidsetDelayTicks(int ticks) 设置武器可以使用前的延迟。void设置武器使目标下马所需的条件。voidsetForwardMovement(float movement) 设置物品的前移动画。voidsetHitSound(@Nullable Sound sound) 设置物品成功击中目标时播放的音效。void设置武器击退目标所需的条件。void设置使用物品时播放的音效。从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getContactCooldownTicks
int getContactCooldownTicks()获取武器击中实体后可以再次使用前的延迟。原文:Gets the delay before the weapon can be used after hitting an entity.
- 返回:
- 冷却时间(以刻为单位)
-
setContactCooldownTicks
void setContactCooldownTicks(int ticks) 设置武器击中实体后可以再次使用前的延迟。原文:Sets the delay before the weapon can be used after hitting an entity.
- 参数:
ticks- 新的冷却时间(以刻为单位)
-
getDelayTicks
int getDelayTicks()获取武器可以使用前的延迟。原文:Gets the delay before the weapon can be used.
- 返回:
- 延迟时间(以刻为单位)
-
setDelayTicks
void setDelayTicks(int ticks) 设置武器可以使用前的延迟。原文:Sets the delay before the weapon can be used.
- 参数:
ticks- 新的延迟时间(以刻为单位)
-
getDismountConditions
获取武器使目标下马所需的条件。原文:Gets the conditions required for the weapon to dismount the target.
- 返回:
- 下马条件
-
setDismountConditions
设置武器使目标下马所需的条件。原文:Sets the conditions required for the weapon to dismount the target.
- 参数:
condition- 下马条件
-
getKnockbackConditions
获取武器击退目标所需的条件。原文:Gets the conditions required for the weapon to knockback the target.
- 返回:
- 击退条件
-
setKnockbackConditions
设置武器击退目标所需的条件。原文:Sets the conditions required for the weapon to knockback the target.
- 参数:
condition- 击退条件
-
getDamageConditions
获取武器对目标造成伤害所需的条件。原文:Gets the conditions required for the weapon to damage the target.
- 返回:
- 伤害条件
-
setDamageConditions
设置武器对目标造成伤害所需的条件。原文:Sets the conditions required for the weapon to damage the target.
- 参数:
condition- 伤害条件
-
getForwardMovement
float getForwardMovement()获取物品的前移动画。原文:Gets the forward movement animation of the item.
- 返回:
- 前移距离
-
setForwardMovement
void setForwardMovement(float movement) 设置物品的前移动画。原文:Sets the forward movement animation of the item.
- 参数:
movement- 新的前移距离
-
getDamageMultiplier
float getDamageMultiplier()获取基于目标和攻击者相对速度的最终伤害倍率。原文:Gets the final damage multiplier based on target and attacker relative speed.
- 返回:
- 伤害倍率
-
setDamageMultipler
void setDamageMultipler(float multiplier) 设置基于目标和攻击者相对速度的最终伤害倍率。原文:Sets the final damage multiplier based on target and attacker relative speed.
- 参数:
multiplier- 新的倍率
-
getSound
获取使用物品时播放的音效。原文:Gets the sound to play when the item is used.
- 返回:
- 音效
-
setSound
设置使用物品时播放的音效。原文:Sets the sound to play when the item is used.
- 参数:
sound- 音效或null表示使用当前默认值
-
getHitSound
获取物品成功击中目标时播放的音效。原文:Gets the sound to play when the item successfully hits a target.
- 返回:
- 音效
-
setHitSound
设置物品成功击中目标时播放的音效。原文:Sets the sound to play when the item successfully hits a target.
- 参数:
sound- 音效或null表示使用当前默认值
-