类 EffectTypes实验性

表示一种效果类型 - 例如中毒 - 可以应用于实体。 Represents a type of effect - like poison - that can be applied to an entity.

方法

方法

  • 实验性

    参数

    • identifier: string

      效果的标识符。 The identifier for the effect.

    返回 EffectType

    给定标识符的效果类型,若效果不存在则返回 undefined。 Effect type for the given identifier or undefined if the effect does not exist.

    表示给定标识符的效果类型。 Effect type for the given identifier.

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

  • 实验性

    返回 EffectType[]

    所有效果的列表。 A list of all effects.

    获取所有效果。 Gets all effects.

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