Class: DataDrivenEntityTriggerAfterEventSignal
Contains event registration related to firing of a data driven entity event - for example, the minecraft:ageable_grow_up event on a chicken.
Constructors
new DataDrivenEntityTriggerAfterEventSignal()
private
new DataDrivenEntityTriggerAfterEventSignal():DataDrivenEntityTriggerAfterEventSignal
Returns
DataDrivenEntityTriggerAfterEventSignal
Methods
subscribe()
subscribe(
callback
,options
?): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
options ? | EntityDataDrivenTriggerEventOptions |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | DataDrivenEntityTriggerAfterEvent |
Returns
void
Remarks
Adds a callback that will be called after a data driven entity event is triggered.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Remarks
Removes a callback that will be called after a data driven entity event is triggered.
This function can't be called in read-only mode.
Throws
This function can throw errors.