Province Neo 0.2.4 for 26.2.jar
Curse Maven Snippet
What's new
0.2.4 for Minecraft 26.2 (NeoForge)
Requires: NeoForge 26.2.0.95 · Java 25 · Xaero's World Map 1.39.0+ · Xaero's Minimap 26.x
New
Province on NeoForge. Same mod, ported: provinces, level hierarchy, vector shapes, block snapping, the editor, the magic wand, vector PNG export and the Xaero overlays all work as on the Fabric build. Everything outside the loader wiring is the same code — ProvinceRenderer, VectorShape, ProvinceSelfTest and the rest are byte-identical in both jars.
Built-in languages, plus an optional pack. Simplified Chinese and English ship inside the mod; installing Province Translation Neo adds Traditional Chinese, French, Russian, Spanish, Japanese and Korean, and a "follow the system" entry.
Faster
Province labels are cached across zoom levels. The anchor survives zooming out and string widths are cached, so zooming out runs no shape tests at all; off-screen provinces skip label work entirely.
Changed
Mod ids use underscores (province_neo, province_translation_neo) because NeoForge's id pattern rejects hyphens. The resource namespace stays assets/mc-province/, so existing language files and icons work untouched.
The world-map overlay is a global ScreenEvent.Render.Post listener instead of per-screen re-hooking; it wraps Screen.extractRenderStateWithTooltipAndSubtitles, so it fires after Xaero's GuiMap has drawn even though that class is never patched.
Keybinds are registered through RegisterKeyMappingsEvent, with the category passed via event.registerCategory rather than the vanilla KeyMapping.Category.register.
Translation files are read through ModList + IModFile.getContents(), since each NeoForge mod has its own class loader and cannot see another mod's jar resources.
Config directory comes from FMLPaths.CONFIGDIR; the two vanilla input mixins stay, because NeoForge's InputEvent.Key is not cancellable.
Compatibility
Save data is shared with the Fabric build. Provinces, level names, settings and exports use the same format, so a world can move between the two lines.
Existing worlds, provinces, level names and settings load unchanged. A stored language with no translation file falls back to English.
Two files, installed together but built apart: the mod here, the translation pack in its own project. The pack requires province_neo >= 0.2.4.
The bundled self-test reports three failures in fill coverage and stroke simplification. They reproduce identically on the Fabric build with the same class bytes, so they are a known disagreement between the 0.2.4 renderer and those two test expectations, not a porting defect.
Files: ProvinceNeo-0.2.4+26.2.jar (the translation pack is a separate project and builds ProvinceTranslationNeo-0.2.4.0.jar)
0.2.4(Minecraft 26.2 / NeoForge)
需要: NeoForge 26.2.0.95 · Java 25 · Xaero's World Map 1.39.0+ · Xaero's Minimap 26.x
新增
Province 的 NeoForge 版。同一个模组:区划、层级、矢量形状、方块吸附、编辑器、魔棒、矢量 PNG 导出、两个 Xaero 叠层都和 Fabric 版一样能用。除加载器接线外是同一份代码——ProvinceRenderer、VectorShape、ProvinceSelfTest 等类在两只 jar 里字节一致。
内置语言,外加可选翻译包。本体自带简体中文和英文;装上 Province Translation Neo 后多出繁体中文、法语、俄语、西班牙语、日语、韩语,并出现「跟随系统」一项。
更快
区划名称在缩放时复用缓存。缩小方向直接复用落点,字符串宽度也缓存了,缩小过程里不再做形状测试;屏幕外的区划根本不进搜索。
改动
模组 ID 改用下划线(province_neo、province_translation_neo),因为 NeoForge 的 ID 规则不允许连字符。资源命名空间仍是 assets/mc-province/,原有语言文件和图标不用动。
世界地图叠层改成全局 ScreenEvent.Render.Post 监听,不再逐个 Screen 重挂;这个事件包在 Screen.extractRenderStateWithTooltipAndSubtitles 外面,所以即使一个字节都不碰 Xaero 的 GuiMap,它画完也必然轮到这里。
快捷键走 RegisterKeyMappingsEvent 注册,分类用 event.registerCategory 交上去,不再调原版 KeyMapping.Category.register。
翻译文件改走 ModList + IModFile.getContents() 读取:NeoForge 每个模组一个类加载器,看不到别人 jar 里的资源。
配置目录来自 FMLPaths.CONFIGDIR;两个原版输入 mixin 保留,因为 NeoForge 的 InputEvent.Key 不可取消。
兼容
存档与 Fabric 版互通。区划、层级名、设置、导出格式完全一致,一个世界可以在两条线之间搬。
已有的世界、区划、层级名和设置直接可用。存下的语言如果找不到翻译文件,回落到英文。
两个文件一起装,但分开构建:本体在这儿,翻译包在它自己的工程里。翻译包要求 province_neo >= 0.2.4。
自带自检里有三条失败(填充覆盖、边框简化)。同样字节的类在 Fabric 版上跑也是这三条,属 0.2.4 渲染器与那两条用例期望本身不一致,不是移植问题。
文件: ProvinceNeo-0.2.4+26.2.jar(翻译包是单独工程,产出 ProvinceTranslationNeo-0.2.4.0.jar)
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include