@minecraft
    正在准备搜索索引...

    类 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.