Lineage
Toggle table of contents
0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Lineage
shared
/
ru.hytalemodding.lineage.shared.command
/
PlayerCommandProtocol
Player
Command
Protocol
object
PlayerCommandProtocol
String-based protocol for proxy player commands over messaging.
Members
Properties
REQUEST_
CHANNEL_
ID
Link copied to clipboard
const
val
REQUEST_CHANNEL_ID
:
String
RESPONSE_
CHANNEL_
ID
Link copied to clipboard
const
val
RESPONSE_CHANNEL_ID
:
String
Functions
decode
Request
Link copied to clipboard
fun
decodeRequest
(
payload
:
ByteArray
)
:
PlayerCommandRequest
?
decode
Response
Link copied to clipboard
fun
decodeResponse
(
payload
:
ByteArray
)
:
PlayerCommandResponse
?
encode
Request
Link copied to clipboard
fun
encodeRequest
(
playerId
:
UUID
,
command
:
String
)
:
ByteArray
encode
Response
Link copied to clipboard
fun
encodeResponse
(
playerId
:
UUID
,
message
:
String
)
:
ByteArray