PlayerInteractWithEntityBeforeEventSignal Class

Manages callbacks that are connected to before a player interacts with an entity.

Methods

subscribe

subscribe(callback: (arg: PlayerInteractWithEntityBeforeEvent) => void): (arg: PlayerInteractWithEntityBeforeEvent) => void

Adds a callback that will be called before a player interacts with an entity.

Parameters

Returns (arg: PlayerInteractWithEntityBeforeEvent) => void

Important

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

unsubscribe

unsubscribe(callback: (arg: PlayerInteractWithEntityBeforeEvent) => void): void

Removes a callback from being called before a player interacts with an entity.

Parameters

Important

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