Mod
SuperAccessTransformer
No reviews yet
Set the modifiers of most classes to public and non-final runtime attributes, and support their use during the development.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
English
SuperAccessTransformer (SAT) is an open-source coremod for Minecraft 1.21+ that modifies access modifiers at runtime by injecting a Java Agent, converting most private, protected, and final members to public. It also includes a Gradle plugin, allowing the transformations to work in development environments without extra JVM arguments.
Core Functionality
Runtime Bytecode Transformation: Uses the java.lang.instrument API along with the ASM library to intercept class loading and modify bytecode. The transformation:
-
Removes
private,protected, andfinalmodifiers from fields and addspublic -
Removes
private,protected, andfinalmodifiers from methods (except<clinit>) and addspublic -
Skips interfaces and enum
$VALUESfields
Development Environment Support
Gradle Plugin Integration: Add the SAT Gradle plugin to your project to enable transformation at development time. The plugin is compatible with both Fabric and NeoForge modules.
buildscript {
dependencies {
classpath 'io.github.yiyuyan:SuperAccessTransformerPlugin:1.000'
}
}
apply plugin: 'io.github.yiyuyan.sat-plugin'
You can also find an example setup for Architectury NeoForge 1.21 at the test branch: yiyuyan/SuperAccessTransformer (test)
Known Limitations & Notes
-
Fabric Loader Dev Environment:
Mob::rotlerpandWitherBoss::rotlerpmethods will not be transformed. -
NeoForge Mod List: As a coremod using the
lowcodefmlloader, SAT does not appear in the NeoForge mod list.
简体中文
SuperAccessTransformer(SAT)是一个面向 Minecraft 1.21+ 的开源 coremod,通过在运行时注入 Java Agent,将大多数 private、protected 和 final 修饰符转换为 public。该模组还提供 Gradle 插件,使得转换在开发环境中也能直接生效,无需额外 JVM 参数。
核心功能
运行时字节码转换:利用 java.lang.instrument API 与 ASM 库拦截类加载过程并修改字节码。转换规则如下:
-
移除字段的
private、protected和final修饰符,并添加public -
移除方法(
<clinit>除外)的private、protected和final修饰符,并添加public -
跳过接口和枚举的
$VALUES字段
开发环境支持
通过 Gradle 插件可在开发环境中启用运行时转换,同时适用于 Fabric 与 NeoForge 模块.
buildscript {
dependencies {
classpath 'io.github.yiyuyan:SuperAccessTransformerPlugin:1.000'
}
}
apply plugin: 'io.github.yiyuyan.sat-plugin'
你也可以参考针对 Architectury NeoForge 1.21 的示例项目:yiyuyan/SuperAccessTransformer at test
已知限制与提示
-
Fabric Loader 开发环境:
Mob::rotlerp和WitherBoss::rotlerp这两个方法不会被转换。 -
NeoForge 模组列表:该模组基于
lowcodefml加载器,作为 coremod 不会出现在 NeoForge 模组列表中。
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers