For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EffectAddBeforeEvent.md.

Class: EffectAddBeforeEvent

event effect

Beta

包含与将效果(如中毒)添加到实体相关的变化信息。

Contains information related to changes to an effect - like poison - being added to an entity.

Properties

cancel

cancel: boolean

Beta

Remarks

当设置为 true 时会取消事件。

When set to true will cancel the event.


duration

duration: number

Beta

Remarks

效果的持续时间。

Effect duration.


effectType

readonly effectType: string

Beta

Remarks

正在添加的效果的类型。

The type of the effect that is being added.


entity

readonly entity: Entity

Beta

Remarks

正在添加效果的实体。

Entity that the effect is being added to.

同领域相关