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