简体   繁体   English

我在获取我的 intelliJ 项目的主要 class 时遇到问题

[英]Im having a problem getting the main class of my intelliJ project

I need to Get a main class here我需要在这里获取主 class

I would then assume I need to put in the directory of the main class so i do this But that gives me a separate error.然后我会假设我需要放入主目录 class 所以我这样但是这给了我一个单独的错误。

Here You can see a clearer image of the code if that helps.如果有帮助,您可以在此处看到更清晰的代码图像。

Would this be a main class?这是一个主要的 class 吗? and if so what would i put here: Image如果是这样,我会在这里放什么:图片


import net.fabricmc.api.ModInitializer;

public class SwordsAndShields implements ModInitializer {
    @Override
    public void onInitialize() {

    }

Here Where it says cp at the top right be sure it ends with.main在这里它在右上角说 cp 的地方确保它以 .main 结尾

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM