跳到正文

DerKaterCore

作者:KAIIIAK

This core allows using fields and methods that are private while runtime

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Important! All DerKaterCore functionality is fully merged with ASJCore by AlexSocol. So do not expect any updates in this project. If you have any questions, please write to the ASJCore issues section or contact KAIIIAK on this Discord server.

 

This core change the access of all fields and methods that it can to PUBLIC in runtime.
Add some new API of writing transformers by extending KASMWorker rewriting methods that it has, doing “changes++;” any time change was made and registering the worker by KASMLib.register(new YourWorker()); inside the FMLCorePlugin

Allows to use fields that are private while compiling by ReflectionLikeUtil.

Example:

ReflectionLikeUtil.SETFIELD(obj, 1, “tek/Gde.tut.Ljava/lang/Object;”);// will be changed into “obj.tut = 1:” where obj is a type of tek.Gde and tut is a type of java.lang.Object

Adds a way to not do null checks by class Opt.

Example:

List<String> listS = null;
for(String s: Opt.it(listS)) {}// THIS will not throw NullPointerExeption

Object o = null;
Opt.it(o,o1 -> System.out.println("o is not null"));// will print "o is not null" only if o is not null in other case do nothing

常见问题

DerKaterCore 支持哪些 Minecraft 版本?

DerKaterCore 支持 Minecraft Java 版 1.7.10,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

DerKaterCore 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

KAIIIAK 的其他作品

查看全部 →