ActorEventPacket¶
文档版本:r/21_u4
协议版本:748
ActorEventPacket数据包,数字ID是27。该数据包用于通信活动对象事件。
结构¶
digraph "ActorEventPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 [label="ActorEventPacket",comment="name: \"ActorEventPacket\", typeName: \"\", id: 0, branchId: 27, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
2 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Event ID",comment="name: \"Event ID\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
4 [label="byte",comment="name: \"byte\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Data",comment="name: \"Data\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="varint",comment="name: \"varint\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6}
}
字段¶
- Target Runtime ID:ActorRuntimeID
- 特殊类型。目标活动对象的运行时标识符。
- Event ID:byte
- 基本类型枚举。事件标识符。枚举值如下:
-
键 值 描述 NONE0无 JUMP1protocol.enum.jump HURT2protocol.enum.hurt DEATH3protocol.enum.death START_ATTACKING4protocol.enum.start_attacking STOP_ATTACKING5protocol.enum.stop_attacking TAMING_FAILED6protocol.enum.taming_failed TAMING_SUCCEEDED7protocol.enum.taming_succeeded SHAKE_WETNESS8protocol.enum.shake_wetness EAT_GRASS10protocol.enum.eat_grass FISHHOOK_BUBBLE11protocol.enum.fishhook_bubble FISHHOOK_FISHPOS12protocol.enum.fishhook_fishpos FISHHOOK_HOOKTIME13protocol.enum.fishhook_hooktime FISHHOOK_TEASE14protocol.enum.fishhook_tease SQUID_FLEEING15protocol.enum.squid_fleeing ZOMBIE_CONVERTING16protocol.enum.zombie_converting PLAY_AMBIENT17protocol.enum.play_ambient SPAWN_ALIVE18protocol.enum.spawn_alive START_OFFER_FLOWER19protocol.enum.start_offer_flower STOP_OFFER_FLOWER20protocol.enum.stop_offer_flower LOVE_HEARTS21protocol.enum.love_hearts VILLAGER_ANGRY22protocol.enum.villager_angry VILLAGER_HAPPY23protocol.enum.villager_happy WITCH_HAT_MAGIC24protocol.enum.witch_hat_magic FIREWORKS_EXPLODE25protocol.enum.fireworks_explode IN_LOVE_HEARTS26protocol.enum.in_love_hearts SILVERFISH_MERGE_ANIM27protocol.enum.silverfish_merge_anim GUARDIAN_ATTACK_SOUND28protocol.enum.guardian_attack_sound DRINK_POTION29protocol.enum.drink_potion THROW_POTION30protocol.enum.throw_potion PRIME_TNTCART31protocol.enum.prime_tntcart PRIME_CREEPER32protocol.enum.prime_creeper AIR_SUPPLY33protocol.enum.air_supply ADD_PLAYER_LEVELS34protocol.enum.add_player_levels GUARDIAN_MINING_FATIGUE35protocol.enum.guardian_mining_fatigue AGENT_SWING_ARM36protocol.enum.agent_swing_arm DRAGON_START_DEATH_ANIM37protocol.enum.dragon_start_death_anim GROUND_DUST38protocol.enum.ground_dust SHAKE39protocol.enum.shake FEED57protocol.enum.feed BABY_AGE60protocol.enum.baby_age INSTANT_DEATH61protocol.enum.instant_death NOTIFY_TRADE62protocol.enum.notify_trade LEASH_DESTROYED63protocol.enum.leash_destroyed CARAVAN_UPDATED64protocol.enum.caravan_updated TALISMAN_ACTIVATE65protocol.enum.talisman_activate DEPRECATED_UPDATE_STRUCTURE_FEATURE66protocol.enum.deprecated_update_structure_feature PLAYER_SPAWNED_MOB67protocol.enum.player_spawned_mob PUKE68protocol.enum.puke UPDATE_STACK_SIZE69protocol.enum.update_stack_size START_SWIMMING70protocol.enum.start_swimming BALLOON_POP71protocol.enum.balloon_pop TREASURE_HUNT72protocol.enum.treasure_hunt SUMMON_AGENT73protocol.enum.summon_agent FINISHED_CHARGING_ITEM74protocol.enum.finished_charging_item ACTOR_GROW_UP76protocol.enum.actor_grow_up VIBRATION_DETECTED77protocol.enum.vibration_detected DRINK_MILK78protocol.enum.drink_milk
- Data:varint
- 基本类型。protocol.packet.actoreventpacket.data.description