Commit Graph
13 Commits
Author SHA1 Message Date
xiaozhou233 867949967e Fix: Locate Forge GuiIngameForge HUD method by descriptor
Forge 1.8.9 remaps the HUD override to a name that differs between the universal jar (a), SRG runtime (func_175180_a) and MCP (renderGameOverlay). Find the single instance (F)V method instead of hardcoding renderGameOverlay.
2026-11-05 20:42:44 +08:00
xiaozhou233 c8fa1a4c64 Fix: Shade javassist into OrangeX namespace for Forge
Forge 1.8.9's LaunchClassLoader delegates the javassist package to its parent, so the injected jar's unrelocated javassist classes were never found. Relocate javassist.* to cn.xiaozhou233.orangex.shaded.javassist.* so the hook system is self-contained.
2026-11-05 20:34:53 +08:00
xiaozhou233 c3dab97779 Feat: Add cross-version TTF font rendering
- Port stb_truetype rasterizer and bake TTF glyph atlases\n- Add FontRenderer/Render2D API with section colors, shadows and CJK fallback\n- Add 1.8.9 GL11 backend and 26.2 GuiRenderState backend\n- Hook GuiIngame/GuiIngameForge and Gui#extractRenderState for per-frame 2D\n- Bundle Proxima, Noto and Poppins fonts\n- Add render/font documentation
2026-11-05 20:31:32 +08:00
xiaozhou233 6c19985e52 Feat: Add tick hooks and Fabric 26.2 support
- Add ClassHook/HookManager pipeline that patches classes through
  JuiceAgent retransform
- Fire EventTickPre/EventTickPost around Minecraft.runTick
  (1.8.9: runTick()V, 26.2: runTick(Z)V)
- Prepare the javassist ClassPool with OrangeX.jar and imported
  packages, avoiding the vanilla 1.8.8 default-package "cn" class
  collision on qualified names
- Access the JuiceAgent API through the system ClassLoader so
  Fabric's Knot does not load a second copy without native methods
- Document the hook architecture, event bus and troubleshooting
  under docs/
2026-11-05 14:27:31 +08:00
xiaozhou233 40ca99f853 Feat: Support Fabric 26.2 injection
- Expose OrangeX.jar through KnotClassDelegate.addCodeSource for Fabric
- Resolve 26.2 mappings by runtime class visibility instead of loader type
- Keep identity mappings for the current Mojang-named Fabric 26.2 runtime
2026-11-04 23:06:22 +08:00
xiaozhou233 1699df9c5d Feat: Add Minecraft 26.2 wrapper support
- Implement the 26.2 Minecraft wrapper using the private instance field
- Register the 26.2 provider and use identity mappings for Mojang names
- Fix MappingManager fallthrough for the 26.2 case
- Accept Render thread and resolve the game class loader by class visibility
2026-11-04 22:57:15 +08:00
xiaozhou233 0f2d9614e5 Fix: Convert mapping class names to binary names
Mapping files store internal names such as net/minecraft/client/Minecraft, but Class.forName requires binary names. Vanilla worked because its target class name has no slashes; Forge failed with ClassNotFoundException.
2026-11-04 22:37:57 +08:00
xiaozhou233 13c9bb622c 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
2026-11-04 22:21:55 +08:00
xiaozhou233 8b9dbce0f7 Refactor: Make runtime detection extensible and Java 8 compatible
Split the runtime package into small, single-purpose pieces so new loaders and Minecraft versions can be added by registration instead of editing control flow.

- Add LoaderProbe registry for mod loader detection

- Add VersionSignatureRegistry/VersionSignature and move structural version signatures out of VersionDetector

- Add VersionIdSource list for Forge/NeoForge metadata readers

- Extract ModernVersionDetector and CandidateClassLoaders

- Replace MinecraftVersion's mutable static id with RuntimeInfo.versionId

- Target Java 8 with source/target 1.8 and --release 8 on JDK 9+

- Add docs/adding-minecraft-versions.md
2026-11-04 01:04:50 +08:00
xiaozhou233 789303c665 Refactor: Move Minecraft runtime detection into OrangeX
Move the full runtime package from Loader to OrangeX (cn.xiaozhou233.orangex.runtime), including loader/version detection, probes and utils.

- OrangeX.start() now detects and stores RuntimeInfo, and prints runtime debug info

- Loader keeps only a self-contained GameClassLoaderResolver for bootstrapping the Minecraft ClassLoader; entry flow is otherwise unchanged

- Move gson dependency to OrangeX with shadow relocation; drop it from Loader
2026-11-04 00:45:58 +08:00
xiaozhou233 fc7a26f051 Feat: Add Minecraft 1.8.8 client module
- Register Minecraft1.8.8 in settings.gradle and .idea/gradle.xml
- Link Minecraft1.8.8 against the 1.8.8 jar, runtime libraries and Loader
- Ignore decompiled src/ and runtime/ directories
- Add start/stop hooks to OrangeX entry point
- Add shared run configurations for packageAll and Start Client
- Drop unused JUnit test blocks from Loader and OrangeX
2026-10-24 16:44:01 +08:00
xiaozhou233 7c644e4d63 Build: Package shaded jars into out/tmp
- Add root packageAll task aggregating Loader and OrangeX shadow jars
- Add cleanOut task so stale artifacts are removed before packaging
- Output fixed-name Loader.jar and OrangeX.jar into out/tmp
- Switch OrangeX Lombok to compileOnly so it is not shaded
2026-10-24 14:01:21 +08:00
xiaozhou233 a7537e9d98 Feat: Add OrangeX core module
- Register OrangeX subproject in settings.gradle
- Add OrangeX build.gradle with Lombok support
- Add OrangeX singleton entry class
2026-10-24 13:54:36 +08:00