PacketReceiveBeforeEventSignal
¶
文档版本:1.21.60.21
PacketReceiveBeforeEventSignal
类。script_api.minecraft/server-net.packetreceivebeforeeventsignal.description
方法¶
subscribe
script_api.minecraft/server-net.packetreceivebeforeeventsignal.subscribe.description
subscribe(callback: (arg: PacketReceivedBeforeEvent) => void, options?: PacketEventOptions): (arg: PacketReceivedBeforeEvent) => void
callback
:(PacketReceivedBeforeEvent) => void
- script_api.minecraft/server-net.packetreceivebeforeeventsignal.subscribe.callback.description
options
?:PacketEventOptions
=null
- script_api.minecraft/server-net.packetreceivebeforeeventsignal.subscribe.options.description
- 返回值:
(PacketReceivedBeforeEvent) => void
- script_api.minecraft/server-net.packetreceivebeforeeventsignal.subscribe.return
unsubscribe
script_api.minecraft/server-net.packetreceivebeforeeventsignal.unsubscribe.description
callback
:(PacketReceivedBeforeEvent) => void
- script_api.minecraft/server-net.packetreceivebeforeeventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.minecraft/server-net.packetreceivebeforeeventsignal.unsubscribe.return