[PR #6840] [MERGED] Name where the LAN host sends the boss and look-at packets #7134

Closed
opened 2026-11-03 06:34:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6840
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger-rest-012-lookat


📝 Commits (1)

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 tools/port_map/rest-012.tsv (+7 -7)

📄 Description

Seven tools/port_map/rest-012.tsv packet rows said missing for behaviour current main has,
on both halves of each packet:

  • ClientboundBossEventPacket.createUpdateProgressPacket / createUpdateNamePacket /
    createUpdateStylePacket / createUpdatePropertiesPacket ->
    game/bossbars.rs::Game::diff_boss_events. publish_boss_bars works out what each viewer
    should see (boss_events_for: the custom bars whose players hold it, then the dragon, the
    withers in range and the raid), diffs that against what it last sent, and sends Add,
    UpdateProgress, UpdateName, UpdateStyle, UpdateProperties and Remove. A guest gets them
    over its connection, the window that simulates the world applies them to its own overlay.
  • ClientboundPlayerLookAtPacket.<init> -> game/commands.rs::Game::send_player_look_at: the
    packet with the from anchor, the point and, for an entity target with a network id, the
    LookAtEntity id and anchor, sent to a guest or queued for the guest the host acts as. /tp <targets> <pos> facing <entity|pos> and /rotate <target> facing ... call it after a
    successful teleport.
  • ClientboundPlayerLookAtPacket.write -> crates/horizon-protocol/src/buf.rs::write:
    packet! PlayerLookAt {from, target, entity LookAtEntity {id, anchor}}.
  • ClientboundPlayerLookAtPacket.getPosition -> game/remote.rs::Game::remote_look_at
    (ClientPacketListener.handleLookAt): the point, or the tracked entity's feet or eyes, then
    Entity.lookAt from the player's own anchor.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv on the build VM -
none of the seven rows is reported. It does name four rows this change does not touch
(RealmsConnect.*, RepeatedNarrator.narrate), which are dangling against the ledger build's jar,
not against this file's method names; they were there before this branch. Each claim here is from
reading the function named in the row.

Not proven: no in-game check. In-game check: /bossbar add x "Y", /bossbar set x players <guest> shows the bar on the guest and /bossbar set x color red recolours it there; /tp <guest> 0 100 0 facing 0 100 10 turns that guest's view north.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6840 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-rest-012-lookat` --- ### 📝 Commits (1) - [`30d5b97`](https://github.com/horizon-rust/horizon/commit/30d5b975295827c237ab00322e5406653687c182) wip: rest-012 rows ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-012.tsv` (+7 -7) </details> ### 📄 Description Seven `tools/port_map/rest-012.tsv` packet rows said `missing` for behaviour current `main` has, on both halves of each packet: - `ClientboundBossEventPacket.createUpdateProgressPacket` / `createUpdateNamePacket` / `createUpdateStylePacket` / `createUpdatePropertiesPacket` -> `game/bossbars.rs::Game::diff_boss_events`. `publish_boss_bars` works out what each viewer should see (`boss_events_for`: the custom bars whose `players` hold it, then the dragon, the withers in range and the raid), diffs that against what it last sent, and sends `Add`, `UpdateProgress`, `UpdateName`, `UpdateStyle`, `UpdateProperties` and `Remove`. A guest gets them over its connection, the window that simulates the world applies them to its own overlay. - `ClientboundPlayerLookAtPacket.<init>` -> `game/commands.rs::Game::send_player_look_at`: the packet with the `from` anchor, the point and, for an entity target with a network id, the `LookAtEntity` id and anchor, sent to a guest or queued for the guest the host acts as. `/tp <targets> <pos> facing <entity|pos>` and `/rotate <target> facing ...` call it after a successful teleport. - `ClientboundPlayerLookAtPacket.write` -> `crates/horizon-protocol/src/buf.rs::write`: `packet! PlayerLookAt {from, target, entity LookAtEntity {id, anchor}}`. - `ClientboundPlayerLookAtPacket.getPosition` -> `game/remote.rs::Game::remote_look_at` (`ClientPacketListener.handleLookAt`): the point, or the tracked entity's feet or eyes, then `Entity.lookAt` from the player's own anchor. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv` on the build VM - none of the seven rows is reported. It does name four rows this change does not touch (`RealmsConnect.*`, `RepeatedNarrator.narrate`), which are dangling against the ledger build's jar, not against this file's method names; they were there before this branch. Each claim here is from reading the function named in the row. **Not proven:** no in-game check. In-game check: `/bossbar add x "Y"`, `/bossbar set x players <guest>` shows the bar on the guest and `/bossbar set x color red` recolours it there; `/tp <guest> 0 100 0 facing 0 100 10` turns that guest's view north. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7134
No description provided.