类 EffectAddBeforeEvent实验性

表示效果(例如中毒)的添加到实体前相关的更改信息。

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

属性

cancel: boolean

若为 true,则表示将取消该事件。

When set to true will cancel the event.

duration: number

效果持续时间。

Effect duration.

effectType: string

正在添加的效果类型。

The type of the effect that is being added.

entity: Entity

正在添加效果的实体。

Entity that the effect is being added to.