Repository navigation
fix(render): 同步 1.21 手册结构实体预览 - #53
Merged
WhereisFff merged 1 commit intoNov 8, 2026
Merged
WhereisFff merged 1 commit into
WhereisFff merged 1 commit into
Conversation
- 按结构坐标加载实体和乘客并转换悬挂实体附着位置 - 保留下落方块起始位置、世界特性和结构连接状态 - 支持仅实体结构投影并修正负坐标实体的预览边界 - 添加实体坐标、乘客及方块状态转换回归测试
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
手册结构预览此前忽略实体,导致含船、矿车、展示框和下落方块的机器示例缺少内容。本 PR 将 26.1 的实体预览修复移植到 1.21.1,为 Anvil-Dev/AnvilCraft#5997 的 1.21 移植提供依赖支持。
验证:
./gradlew.bat compileJava --console=plain、./gradlew.bat test --console=plain、./gradlew.bat build --console=plain和git diff --check通过。新增 3 项 NBT 转换测试,连同既有测试共 7 项通过;已完成独立代码审查。未启动游戏客户端,实体实例加载和渲染画面尚未实机验证。对应源实现:6b80a3b(#48);按 1.21 原有渲染接口适配,无需 26.1 的渲染状态修改事件。