[PR #4671] [MERGED] Draw deadmau5's ears (Deadmau5EarsLayer) #5771

Closed
opened 2026-11-03 05:14:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4671
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/18-avatar-ears


📝 Commits (1)

  • 8bad582 Draw deadmau5's ears: Deadmau5EarsLayer

📊 Changes

5 files changed (+102 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+7 -0)
📝 crates/horizon-client/src/game/lan.rs (+3 -0)
📝 crates/horizon-client/src/game/names.rs (+7 -5)
📝 crates/horizon-client/src/game/perspective.rs (+50 -0)
📝 crates/horizon-client/src/mobs/render.rs (+35 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3519

Rows

  • AvatarRenderer.<init> (the Deadmau5EarsLayer part): a player whose profile name is deadmau5 now draws PlayerEarsModel (head carrying two 6x6x1 ears, from the exported player#ears layer) in their skin, with the head's pose and the hurt overlay, none when invisible. Wired for the local player (third person and inventory preview), players on a server and LAN guest models.

Not in this PR (left open on the row): the stuck-arrow and bee-stinger layers need LivingEntity.DATA_ARROW_COUNT_ID/DATA_STINGER_COUNT_ID which neither the server nor the client read or set; the parrot-on-shoulder layer is #4581.

Checked and already on main, no change: AbstractMinecartRenderer.submit (hurt tilt and offset jitter at game/minecarts.rs cart_geometry), AbstractSkeletonRenderer.extractRenderState (mobs/render.rs shaking), AvatarRenderer.extractCapeState (camera.rs AvatarBob::cape, render::cape).

Vanilla followed

Deadmau5EarsLayer.submit, PlayerEarsModel.createEarsLayer, AbstractClientPlayer.showExtraEars.

Tests

cargo clippy -p horizon-client --all-targets -D warnings clean. No unit test: the layer needs the exported model data from .local.

🤖 Generated with Claude Code


🔄 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/4671 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/18-avatar-ears` --- ### 📝 Commits (1) - [`8bad582`](https://github.com/horizon-rust/horizon/commit/8bad58218520fe8a1514c7231cb62d27c2f16086) Draw deadmau5's ears: Deadmau5EarsLayer ### 📊 Changes **5 files changed** (+102 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+7 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+3 -0) 📝 `crates/horizon-client/src/game/names.rs` (+7 -5) 📝 `crates/horizon-client/src/game/perspective.rs` (+50 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+35 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 ## Rows - `AvatarRenderer.<init>` (the Deadmau5EarsLayer part): a player whose profile name is `deadmau5` now draws `PlayerEarsModel` (head carrying two 6x6x1 ears, from the exported `player#ears` layer) in their skin, with the head's pose and the hurt overlay, none when invisible. Wired for the local player (third person and inventory preview), players on a server and LAN guest models. Not in this PR (left open on the row): the stuck-arrow and bee-stinger layers need `LivingEntity.DATA_ARROW_COUNT_ID`/`DATA_STINGER_COUNT_ID` which neither the server nor the client read or set; the parrot-on-shoulder layer is #4581. Checked and already on main, no change: `AbstractMinecartRenderer.submit` (hurt tilt and offset jitter at `game/minecarts.rs` cart_geometry), `AbstractSkeletonRenderer.extractRenderState` (`mobs/render.rs` `shaking`), `AvatarRenderer.extractCapeState` (`camera.rs` `AvatarBob::cape`, `render::cape`). ## Vanilla followed `Deadmau5EarsLayer.submit`, `PlayerEarsModel.createEarsLayer`, `AbstractClientPlayer.showExtraEars`. ## Tests `cargo clippy -p horizon-client --all-targets -D warnings` clean. No unit test: the layer needs the exported model data from `.local`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:53 +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#5771
No description provided.