构造一个罐子?
注意:是的,minecraft 有一个特定的编码器包,但它不适用于 mac 或 linux(与 python 脚本可移植性有关)
在尝试修改主 java jar 文件(minecraft.jar)时,我注意到它有一个不寻常的结构,我不确定如何构建。它包含[jar结构名称]顶部的所有对象(或经常调用的类),并且这些对象在反编译时不属于任何包。而执行的文件确实属于包。
所以我的问题是,我如何使用 IDE (eclipse/intelliJ) 自己构建这样的 jar 文件?
NOTE: yes, minecraft has a specific coder pack, but it doesn't work for mac or linux (something to do with the python script portability)
While attempting to mod the main java jar file (minecraft.jar) i noticed it has an unusual structure, which im unsure on how to build. It contains all the objects (or the classes which are frequently called) at the top of the [name for structure of jar], and these, when decompiled, didnt belong to any packages. Whereas the files which were executed did belong to packages.
so my question is, how do i structure a jar file like this myself, with an IDE (eclipse/intelliJ)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您需要做的就是在默认包中创建一些类(.java 文件中没有
package
声明)。I think all you need to do is create some classes in the default package (no
package
declaration in the .java file).