WorldInitializeBeforeEventSignal
¶
文档版本:1.21.60.21
WorldInitializeBeforeEventSignal
类。script_api.minecraft/server.worldinitializebeforeeventsignal.description
方法¶
subscribe
script_api.minecraft/server.worldinitializebeforeeventsignal.subscribe.description
subscribe(callback: (arg: WorldInitializeBeforeEvent) => void): (arg: WorldInitializeBeforeEvent) => void
callback
:(WorldInitializeBeforeEvent) => void
- script_api.minecraft/server.worldinitializebeforeeventsignal.subscribe.callback.description
- 返回值:
(WorldInitializeBeforeEvent) => void
- script_api.minecraft/server.worldinitializebeforeeventsignal.subscribe.return
unsubscribe
script_api.minecraft/server.worldinitializebeforeeventsignal.unsubscribe.description
callback
:(WorldInitializeBeforeEvent) => void
- script_api.minecraft/server.worldinitializebeforeeventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.minecraft/server.worldinitializebeforeeventsignal.unsubscribe.return