接口 KineticWeaponComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface KineticWeaponComponent extends ConfigurationSerializable
Represents a component which can turn any item into kinetic weapon that deals damage based on the relative speed of the target and attacker.
  • 方法详细资料

    • getContactCooldownTicks

      int getContactCooldownTicks()
      Gets the delay before the weapon can be used after hitting an entity.
      返回:
      cooldown ticks
    • setContactCooldownTicks

      void setContactCooldownTicks(int ticks)
      Sets the delay before the weapon can be used after hitting an entity.
      参数:
      ticks - new cooldown ticks
    • getDelayTicks

      int getDelayTicks()
      Gets the delay before the weapon can be used.
      返回:
      delay ticks
    • setDelayTicks

      void setDelayTicks(int ticks)
      Sets the delay before the weapon can be used.
      参数:
      ticks - new delay ticks
    • getDismountConditions

      Gets the conditions required for the weapon to dismount the target.
      返回:
      dismount condition
    • setDismountConditions

      void setDismountConditions(@Nullable @Nullable KineticWeaponComponent.Condition condition)
      Sets the conditions required for the weapon to dismount the target.
      参数:
      condition - dismount condition
    • getKnockbackConditions

      Gets the conditions required for the weapon to knockback the target.
      返回:
      knockback condition
    • setKnockbackConditions

      void setKnockbackConditions(@Nullable @Nullable KineticWeaponComponent.Condition condition)
      Sets the conditions required for the weapon to knockback the target.
      参数:
      condition - knockback condition
    • getDamageConditions

      Gets the conditions required for the weapon to damage the target.
      返回:
      damage condition
    • setDamageConditions

      void setDamageConditions(@Nullable @Nullable KineticWeaponComponent.Condition condition)
      Sets the conditions required for the weapon to damage the target.
      参数:
      condition - damage condition
    • getForwardMovement

      float getForwardMovement()
      Gets the forward movement animation of the item.
      返回:
      forward movement distance
    • setForwardMovement

      void setForwardMovement(float movement)
      Sets the forward movement animation of the item.
      参数:
      movement - new forward movement distance
    • getDamageMultiplier

      float getDamageMultiplier()
      Gets the final damage multiplier based on target and attacker relative speed.
      返回:
      damage multiplier
    • setDamageMultipler

      void setDamageMultipler(float multiplier)
      Sets the final damage multiplier based on target and attacker relative speed.
      参数:
      multiplier - new multiplier
    • getSound

      Gets the sound to play when the item is used.
      返回:
      the sound
    • setSound

      void setSound(@Nullable @Nullable Sound sound)
      Sets the sound to play when the item is used.
      参数:
      sound - sound or null for current default
    • getHitSound

      @Nullable @Nullable Sound getHitSound()
      Gets the sound to play when the item successfully hits a target.
      返回:
      the sound
    • setHitSound

      void setHitSound(@Nullable @Nullable Sound sound)
      Sets the sound to play when the item successfully hits a target.
      参数:
      sound - sound or null for current default