20 public const NETWORK_ID = ProtocolInfo::LEGACY_TELEMETRY_EVENT_PACKET;
22 public const TYPE_ACHIEVEMENT_AWARDED = 0;
23 public const TYPE_ENTITY_INTERACT = 1;
24 public const TYPE_PORTAL_BUILT = 2;
25 public const TYPE_PORTAL_USED = 3;
26 public const TYPE_MOB_KILLED = 4;
27 public const TYPE_CAULDRON_USED = 5;
28 public const TYPE_PLAYER_DEATH = 6;
29 public const TYPE_BOSS_KILLED = 7;
30 public const TYPE_AGENT_COMMAND = 8;
31 public const TYPE_AGENT_CREATED = 9;
32 public const TYPE_PATTERN_REMOVED = 10;
33 public const TYPE_COMMANED_EXECUTED = 11;
34 public const TYPE_FISH_BUCKETED = 12;
35 public const TYPE_MOB_BORN = 13;
36 public const TYPE_PET_DIED = 14;
37 public const TYPE_CAULDRON_BLOCK_USED = 15;
38 public const TYPE_COMPOSTER_BLOCK_USED = 16;
39 public const TYPE_BELL_BLOCK_USED = 17;
40 public const TYPE_ACTOR_DEFINITION = 18;
41 public const TYPE_RAID_UPDATE = 19;
42 public const TYPE_PLAYER_MOVEMENT_ANOMALY = 20;
43 public const TYPE_PLAYER_MOVEMENT_CORRECTED = 21;
44 public const TYPE_HONEY_HARVESTED = 22;
45 public const TYPE_TARGET_BLOCK_HIT = 23;
46 public const TYPE_PIGLIN_BARTER = 24;
48 public int $playerRuntimeId;
49 public int $eventData;
53 $this->playerRuntimeId = $in->getActorRuntimeId();
61 $out->putActorRuntimeId($this->playerRuntimeId);
63 $out->putByte($this->type);
69 return $handler->handleLegacyTelemetryEvent($this);