EntityHurtEventSignal
¶
文档版本:1.21.60.21
EntityHurtEventSignal
类。script_api.mojang-minecraft.entityhurteventsignal.description
方法¶
subscribe
script_api.mojang-minecraft.entityhurteventsignal.subscribe.description
subscribe(callback: (arg: EntityHurtEvent) => void, options?: EntityEventOptions): (arg: EntityHurtEvent) => void
callback
:(EntityHurtEvent) => void
- script_api.mojang-minecraft.entityhurteventsignal.subscribe.callback.description
options
?:EntityEventOptions
=null
- script_api.mojang-minecraft.entityhurteventsignal.subscribe.options.description
- 返回值:
(EntityHurtEvent) => void
- script_api.mojang-minecraft.entityhurteventsignal.subscribe.return
unsubscribe
script_api.mojang-minecraft.entityhurteventsignal.unsubscribe.description
callback
:(EntityHurtEvent) => void
- script_api.mojang-minecraft.entityhurteventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.mojang-minecraft.entityhurteventsignal.unsubscribe.return