Xaero World Map Bridge
Xaero World Map Bridge 是一个客户端库,供在 Xaero's World Map 上绘制自定义内容的模组使用。它为 Fabric 和 NeoForge 上的地图覆盖层(map overlays)和用户界面覆盖层(UI overlays)提供了稳定、与加载器无关的 API。
本项目主要作为模组开发者的依赖项。单独安装它并不会添加地图标记、领地或其他可见内容;由依赖此项目的模组注册它所要渲染的覆盖层。
功能
- 有序排列的地图覆盖层:当兼容的渲染钩子可用时,该覆盖层会渲染在地图纹理之上,但在 Xaero 的地图元素之下。
- 用户界面覆盖层:渲染在 Xaero 的用户界面之上。
- 地图上下文:包含相机位置、缩放比例、尺寸以及世界坐标到屏幕坐标的转换辅助方法。
- 地图覆盖层的兼容性回退机制:当 Xaero 更改其内部渲染逻辑时,提供清晰的诊断信息。
- 可选的 Fabric Mod Menu 设置项,用于启用地图覆盖层、UI 覆盖层以及兼容性回退机制。
安装
- 安装 Xaero's World Map,并为你的 Minecraft 版本安装对应的 Fabric 或 NeoForge 加载器。
- 下载与你 Minecraft 版本及加载器相匹配的 Xaero World Map Bridge 文件。
- 在 Fabric 环境下,还需安装 Fabric API。
- 将 Xaero World Map Bridge 及其所需的依赖项放入客户端的
mods文件夹中。
这是一个仅客户端的依赖项。除非有其他模组明确要求在专用服务器上安装它,否则无需在服务器上安装。
兼容性
| Minecraft | Fabric | NeoForge | Xaero's World Map |
|---|---|---|---|
| 1.21.11 | 支持 | 实验性 | 1.40--1.44 |
| 26.1.2 | 支持 | 实验性 | 1.40--1.44 |
| 26.2 | 支持 | 实验性 | 1.41--1.44 |
Xaero's World Map 1.40 未针对 Minecraft 26.2 发布。不支持 Minecraft 26.3,因为无法获得兼容的 Xaero Fabric 制品。
面向模组开发者
使用 XaeroWorldMapBridge.registerMapOverlay(...) 在地图坐标系中绘制,或使用 XaeroWorldMapBridge.registerUiOverlay(...) 在 Xaero 的用户界面上方绘制。注册返回的对象实现了 AutoCloseable 接口,因此调用关闭操作即可注销其覆盖层。
XaeroWorldMapBridge.registerMapOverlay("example:claims", 100, context -> {
int x = context.worldToScreenX(128.0);
int y = context.worldToScreenY(-64.0);
context.canvas().fill(x, y, x + 16, y + 16, 0x80FFAA00);
});
有关完整的 API、构建说明和兼容性详情,请参阅 项目 README。
许可证
Xaero World Map Bridge 采用 MIT License 许可协议。
Xaero World Map Bridge
Xaero World Map Bridge is a client-side library for mods that draw custom content on Xaero's World Map. It provides stable, loader-neutral APIs for map overlays and UI overlays on both Fabric and NeoForge.
This project is primarily a dependency for mod developers. Installing it by itself does not add map markers, claims, or other visible content; dependent mods register the overlays that it renders.
Features
- Ordered map overlays rendered above the map texture and below Xaero's map elements whenever the compatible render hook is available.
- UI overlays rendered above Xaero's interface.
- Map context with camera position, scale, dimensions, and world-to-screen conversion helpers.
- A compatibility fallback for map overlays, with clear diagnostics when Xaero changes its rendering internals.
- Optional Fabric Mod Menu settings for enabling map and UI overlays and the compatibility fallback.
Installation
- Install Xaero's World Map and the matching Fabric or NeoForge loader for your Minecraft version.
- Download the Xaero World Map Bridge file that matches both your Minecraft version and loader.
- On Fabric, also install Fabric API.
- Place Xaero World Map Bridge and its required dependencies in the client's
modsfolder.
It is a client-only dependency. It does not need to be installed on a dedicated server unless another mod specifically requires it there.
Compatibility
| Minecraft | Fabric | NeoForge | Xaero's World Map |
|---|---|---|---|
| 1.21.11 | Yes | Experimental | 1.40--1.44 |
| 26.1.2 | Yes | Experimental | 1.40--1.44 |
| 26.2 | Yes | Experimental | 1.41--1.44 |
Xaero's World Map 1.40 was not released for Minecraft 26.2. Minecraft 26.3 is not supported because a compatible Xaero Fabric artifact is unavailable.
For mod developers
Use XaeroWorldMapBridge.registerMapOverlay(...) to draw in map coordinates, or XaeroWorldMapBridge.registerUiOverlay(...) to draw over Xaero's UI. Registrations are AutoCloseable, so close one to unregister its overlay.
XaeroWorldMapBridge.registerMapOverlay("example:claims", 100, context -> {
int x = context.worldToScreenX(128.0);
int y = context.worldToScreenY(-64.0);
context.canvas().fill(x, y, x + 16, y + 16, 0x80FFAA00);
});
See the project README for the complete API, build instructions, and compatibility details.
License
Xaero World Map Bridge is available under the MIT License.
下载 xaero-world-map-bridge
下载 xaero-world-map-bridge
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 xaero-world-map-bridge
下载 xaero-world-map-bridge
[0.2.0] - 2026-10-18
Added
- 为 Fabric 和 NeoForge 发行版共用一个极简的地图与桥梁模组图标。
Changed
- 将已验证的 Xaero World Map 兼容矩阵扩展至 1.47,并将所有八个构建目标更新为已发布的 1.47.0 工件。
- 从共享的目标元数据中生成独立的 Fabric 和 NeoForge 构建项目,移除了按版本划分的构建脚本。
- 使用 Manifold 预处理器整合了特定版本的 Minecraft 适配器和 Mixin 源文件,共享加载器元数据,且保持八个目标的构建输出不变。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧