Script API - v1.26.10
    Preparing search index...

    Class EffectAddBeforeEvent

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

    export class EffectAddBeforeEvent {
    private constructor();
    cancel: boolean;
    duration: number;
    readonly effectType: string;
    readonly entity: Entity;
    }
    Index

    Constructors

    Properties

    cancel: boolean

    When set to true will cancel the event.

    This property can't be read in early-execution mode.

    duration: number

    Effect duration.

    This property can't be read in early-execution mode.

    effectType: string

    The type of the effect that is being added.

    This property can't be read in early-execution mode.

    entity: Entity

    Entity that the effect is being added to.

    This property can't be read in early-execution mode.