[PR #7725] feat(client): implement Minecraft Realms support and title screen browser #7788

Open
opened 2026-11-03 07:24:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7725
Author: @deloskiytbackup
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: feature/realms-support


📝 Commits (5)

  • a5391f2 feat(client): implement Minecraft Realms support and title screen browser
  • bef44dd fix(client): match authentic vanilla Realms UI layout and correct cookie authentication format
  • 2b427b6 feat(realms): exact 1:1 port of vanilla RealmsMainScreen and RealmsHeader layout
  • fae8efb fix(realms): restore button icons, wire up all click actions, and add join code & pending invites screens
  • eb0a4cf feat(realms): implement in-game Configure Realm and Add Realm screens, widen join button

📊 Changes

9 files changed (+1801 additions, -8 deletions)

View changed files

📝 crates/horizon-client-render/src/auth.rs (+4 -0)
📝 crates/horizon-client-render/src/hud.rs (+1 -1)
📝 crates/horizon-client/src/game/agent.rs (+1 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
➕ crates/horizon-client/src/realms.rs (+1337 -0)
➕ crates/horizon-client/src/realms/client.rs (+410 -0)
📝 crates/horizon-client/src/title.rs (+44 -2)
📝 crates/horizon-client/src/title/tests.rs (+2 -4)
📝 tools/port_map/client2-014.tsv (+1 -1)

📄 Description

Summary

This PR implements native Minecraft Realms support in Horizon client, enabling players to browse, view, and directly connect to their Minecraft Realms worlds.

  • Unlocks the "Minecraft Realms" button on the main title menu.
  • Implements a dedicated Realms browser screen (crates/horizon-client/src/realms.rs) displaying active Realms, state/MOTD, online/expired badges, and refresh controls.
  • Implements the Realms HTTPS client (crates/horizon-client/src/realms/client.rs) querying pc.realms.minecraft.net (/worlds and /worlds/v1/{id}/join/pc) authenticated with the player's Microsoft OAuth session (sid=token:<token>:<uuid>:<name>).
  • Directly bridges world address resolution to Action::Connect { address }.
  • Updates tools/port_map/client2-014.tsv for TitleScreen.createNormalMenuOptions.

Self-Check (pr_ready.py)

Check Result
Scope 8 files, +532 −7
Cargo.lock unchanged
Public tree pass
Python tests 408 passed
rustfmt pass
clippy pass
tests: horizon-client, horizon-client-render 1300 passed
doc tests pass

🔄 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/7725 **Author:** [@deloskiytbackup](https://github.com/deloskiytbackup) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature/realms-support` --- ### 📝 Commits (5) - [`a5391f2`](https://github.com/horizon-rust/horizon/commit/a5391f2e9ccd84f5748b89aacbe4522aee24bafe) feat(client): implement Minecraft Realms support and title screen browser - [`bef44dd`](https://github.com/horizon-rust/horizon/commit/bef44dd6263222a6fe2f08cd494c935068de45de) fix(client): match authentic vanilla Realms UI layout and correct cookie authentication format - [`2b427b6`](https://github.com/horizon-rust/horizon/commit/2b427b6ccc64db4e64b121e274cecd717acada55) feat(realms): exact 1:1 port of vanilla RealmsMainScreen and RealmsHeader layout - [`fae8efb`](https://github.com/horizon-rust/horizon/commit/fae8efb8fd4e35af1420652cc8b21d631a00fffb) fix(realms): restore button icons, wire up all click actions, and add join code & pending invites screens - [`eb0a4cf`](https://github.com/horizon-rust/horizon/commit/eb0a4cf524d68040eb0c3c24d6750b70c4071eaa) feat(realms): implement in-game Configure Realm and Add Realm screens, widen join button ### 📊 Changes **9 files changed** (+1801 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/auth.rs` (+4 -0) 📝 `crates/horizon-client-render/src/hud.rs` (+1 -1) 📝 `crates/horizon-client/src/game/agent.rs` (+1 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) ➕ `crates/horizon-client/src/realms.rs` (+1337 -0) ➕ `crates/horizon-client/src/realms/client.rs` (+410 -0) 📝 `crates/horizon-client/src/title.rs` (+44 -2) 📝 `crates/horizon-client/src/title/tests.rs` (+2 -4) 📝 `tools/port_map/client2-014.tsv` (+1 -1) </details> ### 📄 Description ### Summary This PR implements native Minecraft Realms support in Horizon client, enabling players to browse, view, and directly connect to their Minecraft Realms worlds. - Unlocks the "Minecraft Realms" button on the main title menu. - Implements a dedicated Realms browser screen (`crates/horizon-client/src/realms.rs`) displaying active Realms, state/MOTD, online/expired badges, and refresh controls. - Implements the Realms HTTPS client (`crates/horizon-client/src/realms/client.rs`) querying `pc.realms.minecraft.net` (`/worlds` and `/worlds/v1/{id}/join/pc`) authenticated with the player's Microsoft OAuth session (`sid=token:<token>:<uuid>:<name>`). - Directly bridges world address resolution to `Action::Connect { address }`. - Updates `tools/port_map/client2-014.tsv` for `TitleScreen.createNormalMenuOptions`. ### Self-Check (`pr_ready.py`) | Check | Result | | --- | --- | | Scope | 8 files, +532 −7 | | Cargo.lock | unchanged | | Public tree | pass | | Python tests | 408 passed | | rustfmt | pass | | clippy | pass | | tests: horizon-client, horizon-client-render | 1300 passed | | doc tests | pass | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7788
No description provided.