mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-27 05:13:54 +00:00
- 后端:ProfileAccess 按服务器选择访问方式,启动时选一次。Uranium 使用编译进 JAR 的 UraniumProfileAccess(CraftPlayer#getProfile、authlib 1.5.16,签名来自 TDLM/Uranium 源码与 authlib 字节码),没有反射;其他服务器(如 Spigot 1.7.10)使用缓存反射回退 ReflectiveProfileAccess;编译调用链接失败时记警告并改用回退 - 剥离会话证明的算法只保留一份,两种访问方式共用 - src/serverStubs:只用于编译和测试的服务器类副本,不进 JAR;verifyBackendJar 额外检查 不含 com/mojang/ - 代理:PluginConstructors 用 MethodHandles.publicLookup().findConstructor 创建插件, 不再使用 java.lang.reflect 与 ServiceLoader - 测试:UraniumProfileAccessTest、PluginConstructorsTest;文档说明各服务器的访问方式 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>