The creative tabs system has changed slightly, but makes a big difference!
There is an extra integer in the first line of creating a tab.
public static CreativeTabs examtab = new CreativeTabs(0, "exampleTab"){
Interestingly, each tab now has it's own id, so if I do set it to an id that is already used (can see used ids in CreativeTabs.java) then it will actually overwrite it and you will see your tab in it's spot, if you click out of that tab then it will crash. If you set it a higher number than 11 (which is how many tabs there are) then it will crash. And now for some reason I can't even open the world I was testing it on because it just crashes.
This could be a forge bug, a minecraft bug, or the fact that this build is marked "Latest".
Please be aware of this! ;3
~Jad
EDIT: Done more testing, I made a new world and I have visuals!
There has always been an optional ID field. Your tab classes should be exactly the same in 1.8:
public class SomeCreativeTab extends CreativeTabs
{
public SomeCreativeTab(String label) {
super(label); // put 'itemGroup.label' in your lang file for standard translated tab label
}
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return YourMod.someItem;
}
}
When I remove the constructor "int index" part of my custom creative tab, I get "The constructor is undefined"
I couldn't see your screenshot, but I'm using Forge 1.8-11.14.0.1281-1.8 and my creative tabs are fine. Perhaps there is something wrong with your project setup?
I can confirm that this is not the case. The constructor which requires only a string still exists and is accessible. Even if it wasn't getNextID is available as well, along with the ability to make your own getNextID method if that does not exist. Tested in forge 1280 for 1.8.
Even if this were true, does this really warrant it's own thread? There are hundreds of other (much more complicated) things that have changed since 1.7.x. I'm all for documentation believe me, but it's probably best to consolidate it all into one article. Which they usually do already on the Forge Forums when there is a milestone release.
There is an extra integer in the first line of creating a tab.
public static CreativeTabs examtab = new CreativeTabs(0, "exampleTab"){
Interestingly, each tab now has it's own id, so if I do set it to an id that is already used (can see used ids in CreativeTabs.java) then it will actually overwrite it and you will see your tab in it's spot, if you click out of that tab then it will crash. If you set it a higher number than 11 (which is how many tabs there are) then it will crash. And now for some reason I can't even open the world I was testing it on because it just crashes.
This could be a forge bug, a minecraft bug, or the fact that this build is marked "Latest".
Please be aware of this! ;3
~Jad
EDIT: Done more testing, I made a new world and I have visuals!
I couldn't see your screenshot, but I'm using Forge 1.8-11.14.0.1281-1.8 and my creative tabs are fine. Perhaps there is something wrong with your project setup?
Farewell everyone o/