英文
这是一个特殊的 Minecraft 模组,可以通过使用自定义类文件在本地或通过网络重新转换或重定义游戏的代码。
如何使用它?
(重新)转换类:
如果你想重新转换游戏代码,你需要将一些类文件添加到游戏目录中的 "mp-classes" 文件夹中。它们将被加载并重新转换为游戏。
如果你觉得重新转换代码太麻烦,你可以只写一个或多个 json 文件到 "mp-classes" 中,然后在这些 json 文件中写入一些 URL(例如 "),这些 URL 将被读取并加载到游戏中进行(重新)转换。
导出类:
当然,如果你不知道如何获取这些类文件,你可以使用导出功能来导出类文件。你需要
将一些类的完整名称,例如 "net.minecraft.client.gui.Gui" 和 "net.minecraft.world.entity.player.Player" 写入 "<game_directory>/mp-exports/mp-export-config.json"。
如果你不知道这些类在哪里,你可以按下 F12 键或打开 Recaf 应用以启用调试导出功能,将准备转换的类导出到游戏目录中的 "mp-exports" 文件夹。
它是如何工作的?
首先,它会在模组加载器预启动时作为 Java Agent 加载自身,然后从该模组的配置文件夹中加载自定义类。
其次,它将注册一个类文件转换器,以(重新)转换为自定义类,或将源类文件导出到该模组的导出配置文件夹。
提示:如果在 (neo)Forge 加载器上运行此模组,它不会显示在模组列表中。
简体中文
这是一个特殊的《我的世界》模组,它可以通过使用本地或网络上的自定义类文件来重新编译或重新定义游戏的代码。
如何使用它?
(重新)转换 类:
如果您想要重新转换游戏的代码,您需要将一些类文件添加到游戏目录中的“mp-classes”文件夹中。这些文件将会被加载并重新转换为游戏内容。
如果您觉得重新转换代码的过程过于繁琐,您可以直接将一个或多个 JSON 文件写入“mp-classes”中,然后在 JSON 文件中添加一些类似于“” 这样的 URL,这些 URL 将被读取并加载到游戏中,以便进行(重新)转换。
导出 类:
当然,如果您不知道如何获取这些类文件,您可以使用“导出”功能来导出类文件。您需要
将一些类的完整名称(例如“net.minecraft.client.gui.Gui”和“net.minecraft.world.entity.player.Player”)写入“<游戏目录>/mp-exports/mp-export-config.json”文件中。
如果您不清楚这些类的位置,您可以按下 F12 键,或者打开 Recaf 应用程序以启用调试导出功能,从而将准备转换为类的文件导出到游戏目录中的“mp-exports”文件夹中。
它是如何运作的?
首先,当模组加载器启动时,它会以 Java 代理的形式自动加载,然后它会从该模组的配置文件夹中加载自定义类。
其次,它会注册一个类文件转换器,用于将(重新)转换为您所设定的自定义类,或者将源类文件导出到该模组的导出配置文件夹中。
提示:如果您在 (Neo)Forge 模组加载器上运行此模组,那么该模组将不会出现在模组列表中。
English
This is a special Minecraft mod that can retransform or redefine the game's codes by using custom class files either locally or over the internet.
How to use it?
(Re)Transform classes:
If you want to retransfrom game's codes, you need to add some class files to the "mp-classes" folder in the game directory. They will be loaded and retransfromed to the game.
If you think it is too rigmarole to retransfrom codes,you can just write one or more jsons into the "mp-classes",then write some url(s) such as " into json files,these urls will be read and loaded into the games for (re)transforming.
Export classes:
Certainly,if you don't know how to get these class files,you can use the export feature to export class files. You need to
write some classes' the whole name,such as "net.minecraft.client.gui.Gui" and "net.minecraft.world.entity.player.Player" into the "<game_directory>/mp-exports/mp-export-config.json".
If you don't know where these classes are,you can press the F12 key down or open the Recaf app to enable the debug export feature to export classes what are preparing for transfroming classes into the "mp-exports" folder in the game directory.
How does it works?
First, it will load itself as a java agent when the mod loader is pre launching,then it will load custom classes from this mod's configuration folders.
Second, it will register a class file transfromer to (re)transfrom to the custom class you set or export source class files to this mod's export configuration folder.
Tips: This mod will NOT display in the mod list if you run this mod on the (neo)forge mod loader.
简体中文
这是一个特殊的《我的世界》模组,它可以通过使用本地或网络上的自定义类文件来重新编译或重新定义游戏的代码。
如何使用它?
(重新)转换 类:
如果您想要重新转换游戏的代码,您需要将一些类文件添加到游戏目录中的“mp-classes”文件夹中。这些文件将会被加载并重新转换为游戏内容。
如果您觉得重新转换代码的过程过于繁琐,您可以直接将一个或多个 JSON 文件写入“mp-classes”中,然后在 JSON 文件中添加一些类似于“” 这样的 URL,这些 URL 将被读取并加载到游戏中,以便进行(重新)转换。
导出 类:
当然,如果您不知道如何获取这些类文件,您可以使用“导出”功能来导出类文件。你需要
将一些类的完整名称(例如“net.minecraft.client.gui.Gui”和“net.minecraft.world.entity.player.Player”)写入“<游戏目录>/mp-exports/mp-export-config.json”文件中。
如果您不清楚这些类的位置,您可以按下 F12 键,或者打开 Recaf 应用程序以启用调试导出功能,从而将准备转换为类的文件导出到游戏目录中的“mp-exports”文件夹中。
它是如何运作的?
首先,当模组加载器启动时,它会以 Java 代理的形式自动加载,然后它会从该模组的配置文件夹中加载自定义类。
其次,它会注册一个类文件转换器,用于将(重新)转换为您所设定的自定义类,或者将源类文件导出到该模组的导出配置文件夹中。
提示:如果您在(Neo)Forge 模组加载器上运行此模组,那么该模组将不会出现在模组列表中。
评论 0
登录后参与评分
还没有评论,来抢沙发吧