RainJava API
高级运行时类转换框架
一个基础库,提供 Mixin 和 Coremod 互操作层,由企业级字节码和编译工具提供支持。
概述
RainJava API 建立了运行时类转换管道的关键基础设施。它充当动态编译工作流程与 Minecraft 标准修改系统(Mixin 和 Coremod)之间的中间件桥梁,确保在字节码级别的兼容性,同时不损害游戏稳定性。
虽然旨在作为即将推出的 RainJava 生态系统的前置基础,但该 API 也可独立作为一个强大的工具包,供需要深度类操纵能力的开发者使用。
嵌入式库
本模组附带了行业标准工具的零外部依赖版本:
-
Javassist — 用于运行时类工程的高级字节码操作库
-
ECJ (Eclipse Compiler for Java) — 功能齐全的 Java 编译器,能够进行运行时源码到字节码的转换
-
JavaParser — 抽象语法树 (AST) 分析和代码生成框架
这些库经过阴影处理并隔离,以防止与其他模组发生冲突。
技术范围
-
转换桥接 — 促进运行时生成的类定义与现有字节码修改框架之间的通信
-
Mixin 兼容层 — 启用标准化的注入模式以识别和处理动态提供的类
-
Coremod 集成 — 为运行时类定义参与 Forge 的转换链提供稳定的钩子
-
沙盒执行 — 为运行时代码评估环境实现安全边界
针对模组开发者
如果您符合以下情况,请安装此 API:
RainJava API
Advanced Runtime Class Transformation Framework
A foundational library providing Mixin and Coremod interoperability layers, powered by enterprise-grade bytecode and compilation tools.
Overview
RainJava API establishes the critical infrastructure for runtime class transformation pipelines. It serves as a middleware bridge between dynamic compilation workflows and Minecraft's standard modification systems (Mixin & Coremod), ensuring bytecode-level compatibility without compromising game stability.
While designed as the prerequisite foundation for the upcoming RainJava ecosystem, this API functions independently as a robust toolkit for developers requiring deep class manipulation capabilities.
Embedded Libraries
This mod ships with zero-external-dependency versions of industry-standard tools:
-
Javassist — High-level bytecode manipulation library for runtime class engineering
-
ECJ (Eclipse Compiler for Java) — Full-featured Java compiler capable of runtime source-to-bytecode transformation
-
JavaParser — Abstract Syntax Tree (AST) analysis and code generation framework
These libraries are shaded and isolated to prevent conflicts with other mods.
Technical Scope
-
Transformation Bridge — Facilitates communication between runtime-generated class definitions and established bytecode modification frameworks
-
Mixin Compatibility Layer — Enables standardized injection patterns to recognize and process dynamically provisioned classes
-
Coremod Integration — Provides stable hooks for runtime class definitions to participate in Forge's transformation chain
-
Sandboxed Execution — Implements security boundaries for runtime code evaluation environments
For Modders
Install this API if you:
-
Plan to develop for or use the upcoming RainJava framework
-
Require embedded Javassist/ECJ/JavaParser without bundling them yourself
-
Need stable Mixin/Coremod interoperability for advanced bytecode operations
评论 0
登录后参与评分
还没有评论,来抢沙发吧