接口 PiercingWeaponComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface PiercingWeaponComponent extends ConfigurationSerializable
Represents a component which can turn any item into piercing weapon that damages multiple entities.
  • 方法详细资料

    • isDealsKnockback

      boolean isDealsKnockback()
      Gets whether the attack deals knockback to the target.
      返回:
      true if knockback
    • setDealsKnockback

      void setDealsKnockback(boolean knockback)
      Sets whether the attack deals knockback to the target.
      参数:
      knockback - true if knockback
    • isDismounts

      boolean isDismounts()
      Gets whether the attack dismounts the target.
      返回:
      true if dismounts
    • setDismounts

      void setDismounts(boolean dismounts)
      Sets whether the attack dismounts the target.
      参数:
      dismounts - true if dismounts
    • 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