DataDrivenEntityTriggerAfterEventSignal Class
Contains event registration related to firing of a data driven entity event - for example, the minecraft:ageable_grow_up event on a chicken.
Methods
subscribe
subscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void, options?: EntityDataDrivenTriggerEventOptions): (arg: DataDrivenEntityTriggerAfterEvent) => void
Adds a callback that will be called after a data driven entity event is triggered.
Parameters
- callback: (arg: DataDrivenEntityTriggerAfterEvent) => void
- options?: EntityDataDrivenTriggerEventOptions =
null
Returns (arg: DataDrivenEntityTriggerAfterEvent) => void
Important
This function can't be called in read-only mode.
unsubscribe
unsubscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void): void
Removes a callback that will be called after a data driven entity event is triggered.
Parameters
- callback: (arg: DataDrivenEntityTriggerAfterEvent) => void
Important
This function can't be called in read-only mode.
Warning
This function can throw errors.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for