@minecraft/server / EntityLoadAfterEventSignal
Class: EntityLoadAfterEventSignal ​
Defined in: @minecraft/server/index.d.ts:11411
Registers a script-based event handler for handling what happens when an entity loads.
Methods ​
subscribe() ​
subscribe(
callback): (arg0) =>void
Defined in: @minecraft/server/index.d.ts:11425
Parameters ​
callback ​
(arg0) => void
Function that handles the load event.
Returns ​
(arg0) => void
Remarks ​
Method to register an event handler for what happens when an entity loads.
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:11439
Parameters ​
callback ​
(arg0) => void
Original function that was passed into the subscribe event, that is to be unregistered.
Returns ​
void
Remarks ​
Unregisters a method that was previously subscribed to the subscription event.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.