Refactor: Add version provider registry to wrapper

- Add WrapperContext, WrapperProvider and WrapperRegistry for version dispatch
- Move the 1.8.9 implementation to internal.v1_8_9 with constructor injection
- Support identity mappings for MCP development environments
- Document the wrapper structure and how to add a Minecraft version
This commit is contained in:
xiaozhou233 committed 2026-11-04 22:21:55 +08:00
1 parent 8b9dbce0f7
commit 13c9bb622c
22 files changed
+51295

No files matched your search

+3
View File
@@ -155,3 +155,6 @@ RuntimeDetector.debug(info);
- 如果只需检查 marker 类,使用 `ClassPresenceLoaderProbe`。
- 如果需要结构判断,实现 `LoaderProbe`。
3. 如果新加载器需要专属版本签名,在 `VersionSignatureRegistry` 中使用 `VersionSignature.forLoader(...)`。
版本检测完成后,如果需要为该版本提供跨版本 API,见
[adding-wrapper-versions.md](adding-wrapper-versions.md)。