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

132 lines
4.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "931742870",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"3826292599": {
"title": "ActorEventPacketPayload",
"type": "object",
"properties": {
"Data": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 2
},
"Event ID": {
"title": "enum ActorEvent",
"type": "string",
"enum": [
"NONE",
"JUMP",
"HURT",
"DEATH",
"START_ATTACKING",
"STOP_ATTACKING",
"TAMING_FAILED",
"TAMING_SUCCEEDED",
"SHAKE_WETNESS",
"EAT_GRASS",
"FISHHOOK_BUBBLE",
"FISHHOOK_FISHPOS",
"FISHHOOK_HOOKTIME",
"FISHHOOK_TEASE",
"SQUID_FLEEING",
"ZOMBIE_CONVERTING",
"PLAY_AMBIENT",
"SPAWN_ALIVE",
"START_OFFER_FLOWER",
"STOP_OFFER_FLOWER",
"LOVE_HEARTS",
"VILLAGER_ANGRY",
"VILLAGER_HAPPY",
"WITCH_HAT_MAGIC",
"FIREWORKS_EXPLODE",
"IN_LOVE_HEARTS",
"SILVERFISH_MERGE_ANIM",
"GUARDIAN_ATTACK_SOUND",
"DRINK_POTION",
"THROW_POTION",
"PRIME_TNTCART",
"PRIME_CREEPER",
"AIR_SUPPLY",
"DEPRECATED_ADD_PLAYER_LEVELS",
"GUARDIAN_MINING_FATIGUE",
"AGENT_SWING_ARM",
"DRAGON_START_DEATH_ANIM",
"GROUND_DUST",
"SHAKE",
"FEED",
"BABY_AGE",
"INSTANT_DEATH",
"NOTIFY_TRADE",
"LEASH_DESTROYED",
"CARAVAN_UPDATED",
"TALISMAN_ACTIVATE",
"DEPRECATED_UPDATE_STRUCTURE_FEATURE",
"PLAYER_SPAWNED_MOB",
"PUKE",
"UPDATE_STACK_SIZE",
"START_SWIMMING",
"BALLOON_POP",
"TREASURE_HUNT",
"SUMMON_AGENT",
"FINISHED_CHARGING_ITEM",
"ACTOR_GROW_UP",
"VIBRATION_DETECTED",
"DRINK_MILK",
"SHAKE_WETNESS_STOP"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 1
},
"Target Runtime ID": {
"$ref": "#/definitions/3541243607",
"x-ordinal-index": 0
}
},
"required": [
"Data",
"Event ID",
"Target Runtime ID"
]
},
"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": "ActorEventPacket",
"description": "All kinds of actor state changes (see Actor::handleEntityEvent).",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/3826292599",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 27,
"[cereal:packet_details]": "Ranges from a crossbow being ready to fire to taming animals..., some of which may be obsolete (frex, ADD_PLAYER_LEVELS)"
}
}