toggle menu
silk
1.11.4
jvm
switch theme
search in API
silk-network
/
net.silkmc.silk.network.packet.internal
/
SilkPacketPayload
Silk
Packet
Payload
class
SilkPacketPayload
(
val
definition
:
AbstractPacketDefinition
<
*
,
*
>
,
val
bytes
:
ByteArray
)
:
CustomPacketPayload
Members
Constructors
Silk
Packet
Payload
Link copied to clipboard
constructor
(
definition
:
AbstractPacketDefinition
<
*
,
*
>
,
bytes
:
ByteArray
)
Properties
bytes
Link copied to clipboard
val
bytes
:
ByteArray
definition
Link copied to clipboard
val
definition
:
AbstractPacketDefinition
<
*
,
*
>
Functions
on
Receive
Client
Link copied to clipboard
fun
onReceiveClient
(
context
:
ClientPacketContext
)
:
Boolean
on
Receive
Server
Link copied to clipboard
fun
onReceiveServer
(
context
:
ServerPacketContext
)
:
Boolean
type
Link copied to clipboard
open
override
fun
type
(
)
:
CustomPacketPayload.Type
<
SilkPacketPayload
>