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

    Represents a type of effect - like poison - that can be applied to an entity.

    export class EffectTypes {
    private constructor();
    static get(identifier: string): EffectType | undefined;
    static getAll(): EffectType[];
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • identifier: string

        The identifier for the effect.

      Returns EffectType | undefined

      Effect type for the given identifier or undefined if the effect does not exist.

      Effect type for the given identifier.

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Returns EffectType[]

      A list of all effects.

      Gets all effects.

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.