toggle menu
silk
1.10.4
jvm
switch theme
search in API
silk-network
/
net.silkmc.silk.network.packet
/
ClientToServerPacketDefinition
/
receiveOnServer
receive
On
Server
fun
receiveOnServer
(
receiver
:
suspend
(
packet
:
T
,
context
:
ServerPacketContext
)
->
Unit
)
(
source
)
Executes the given
receiver
as a callback when this packet is received on the server-side.