类 EffectTypes实验性

Represents a type of effect - like poison - that can be applied to an entity.

方法

方法

  • 实验性

    参数

    • identifier: string

      The identifier for the effect.

    返回 EffectType

    Effect type for the given identifier or undefined if the effect does not exist.

    Effect type for the given identifier.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents