类 EffectAddBeforeEvent实验性

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

属性

cancel: boolean

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.