I'm trying to create a creative tab.
Also, I'd like to disclaim that I don't have a great amount of experience with Java, let alone modding with FML.
And that this is my first post, so please punish me gently.
Problem:
Unfortunately, I've come across an argument I am not familiar with. This is located within the main class. The only errors state that the arguments by TutorialTab is incorrect.
public static final TutorialTab tabTutorial = new TutorialTab(0, "tabTutorial");
Inside the argument, it requires me to put in an integer. ("0") When I do, run Minecraft, and attempt to open up my creative inventory, the client just crashes. I have already set up a CreativeTabs class:
package Epauchus.test;
import Epauchus.test.init.TutorialItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class TutorialTab extends CreativeTabs {
public TutorialTab(int index, String label) {
super(index, label);
this.setBackgroundImageName("tab_tutorial.png");
}
@Override
public Item getTabIconItem() {
return TutorialItems.test_item;
}
}
If you see anything wrong and is capable of helping me fix it, please notify me. Your feedback will be greatly appreciated. c: