程序包 org.bukkit.damage

# 接口 DamageEffect

@Experimental public interface DamageEffect
Represents a type of effect that occurs when damage is inflicted. Currently, effects only determine the sound that plays.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final DamageEffect`
  `BURNING`
  A single burn tick (fire, lava, etc.).
  `static final DamageEffect`
  `DROWNING`
  Drowning.
  `static final DamageEffect`
  `FREEZING`
  Freeze tick (powder snow).
  `static final DamageEffect`
  `HURT`
  The default damage effect.
  `static final DamageEffect`
  `POKING`
  Poked by a berry bush.
  `static final DamageEffect`
  `THORNS`
  Thorns.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Sound`
  `getSound()`
  Get the `Sound` played for this `DamageEffect`.

- ## 字段详细资料

  - ### HURT

    static final DamageEffect HURT
    The default damage effect.

  - ### THORNS

    static final DamageEffect THORNS
    Thorns.

  - ### DROWNING

    static final DamageEffect DROWNING
    Drowning.

  - ### BURNING

    static final DamageEffect BURNING
    A single burn tick (fire, lava, etc.).

  - ### POKING

    static final DamageEffect POKING
    Poked by a berry bush.

  - ### FREEZING

    static final DamageEffect FREEZING
    Freeze tick (powder snow).

- ## 方法详细资料

  - ### getSound

    @NotNull @NotNull Sound getSound()
    Get the `Sound` played for this `DamageEffect`.
    返回:
      the sound