1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 14:45:14 +00:00
Files
bedrock-protocol-docs/json/NpcRequestPacket.json

87 lines
3.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "3778433589",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"2299229790": {
"title": "NpcRequestPacketPayload",
"type": "object",
"properties": {
"Action Index": {
"type": "integer",
"x-underlying-type": "uint8",
"x-ordinal-index": 3
},
"Actions": {
"type": "string",
"x-ordinal-index": 2
},
"NPC Runtime ID": {
"$ref": "#/definitions/3541243607",
"x-ordinal-index": 0
},
"Request Type": {
"title": "NpcRequestPacketPayload RequestType",
"type": "string",
"enum": [
"SetActions",
"ExecuteAction",
"ExecuteClosingCommands",
"SetName",
"SetSkin",
"SetInteractText",
"ExecuteOpeningCommands"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 1
},
"Scene Name": {
"type": "string",
"x-ordinal-index": 4
}
},
"required": [
"Action Index",
"Actions",
"NPC Runtime ID",
"Request Type",
"Scene Name"
]
},
"3541243607": {
"title": "ActorRuntimeID",
"type": "object",
"properties": {
"Actor Runtime ID": {
"type": "integer",
"x-underlying-type": "uint64",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
}
},
"required": [
"Actor Runtime ID"
]
}
},
"title": "NpcRequestPacket",
"description": "Used for a number of interactions with the NPC Component",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/2299229790",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 98,
"[cereal:packet_details]": "A request is made from the client during an interaction with an NPC then the request is processed by the server. \n\tActor MUST have the NPCComponent to be handled. \n\tWe currently only use this for EDU, but the goal was to expose the NPC Component to creators."
}
}