Private
constructorFunction that handles the spawn event.
Method to register an event handler for what happens when an entity spawns.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
Method to register an event handler for what happens when an entity spawns.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
Original function that was passed into the subscribe event, that is to be unregistered.
Unregisters a method that was previously subscribed to the subscription event.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
Registers a script-based event handler for handling what happens when an entity spawns.
Example
logEntitySpawnEvents.ts