@minecraft/server
    Preparing search index...

    Class EffectTypesBeta

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

    Index

    Methods

    Methods

    • Beta

      Parameters

      • identifier: string

        The identifier for the effect.

      Returns undefined | EffectType

      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 read-only mode.

    • Beta

      Returns EffectType[]

      A list of all effects.

      Gets all effects.

      This function can't be called in read-only mode.