Skip to content

@minecraft/server


@minecraft/server / EffectAddAfterEventSignal

Class: EffectAddAfterEventSignal ​

Defined in: @minecraft/server/index.d.ts:8169

Manages callbacks that are connected to when an effect is added to an entity.

Methods ​

subscribe() ​

subscribe(callback, options?): (arg0) => void

Defined in: @minecraft/server/index.d.ts:8181

Parameters ​

callback ​

(arg0) => void

options? ​

EntityEventOptions

Returns ​

(arg0) => void

Remarks ​

Adds a callback that will be called when an effect is added to an entity.

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

This function can be called in early-execution mode.


unsubscribe() ​

unsubscribe(callback): void

Defined in: @minecraft/server/index.d.ts:8195

Parameters ​

callback ​

(arg0) => void

Returns ​

void

Remarks ​

Removes a callback from being called when an effect is added to an entity.

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

This function can be called in early-execution mode.