EntityHealthChangedAfterEventSignal
¶
文档版本:1.21.60.21
EntityHealthChangedAfterEventSignal
类。script_api.minecraft/server.entityhealthchangedaftereventsignal.description
方法¶
subscribe
script_api.minecraft/server.entityhealthchangedaftereventsignal.subscribe.description
subscribe(callback: (arg: EntityHealthChangedAfterEvent) => void, options?: EntityEventOptions): (arg: EntityHealthChangedAfterEvent) => void
callback
:(EntityHealthChangedAfterEvent) => void
- script_api.minecraft/server.entityhealthchangedaftereventsignal.subscribe.callback.description
options
?:EntityEventOptions
=null
- script_api.minecraft/server.entityhealthchangedaftereventsignal.subscribe.options.description
- 返回值:
(EntityHealthChangedAfterEvent) => void
- script_api.minecraft/server.entityhealthchangedaftereventsignal.subscribe.return
unsubscribe
script_api.minecraft/server.entityhealthchangedaftereventsignal.unsubscribe.description
callback
:(EntityHealthChangedAfterEvent) => void
- script_api.minecraft/server.entityhealthchangedaftereventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.minecraft/server.entityhealthchangedaftereventsignal.unsubscribe.return