Jump to content

Creative Tabs Error


shucke

Recommended Posts

i did reobfuscate my code.

and this is my creativeTab code

public static CreativeTabs tabBlocks = new CreativeTab("Blocks", 7);
public static CreativeTabs tabRecipes = new CreativeTab("Recipe's", 1);
public static CreativeTabs tabQuest = new CreativeTab("Quest", ;
public static CreativeTabs tabJewelry = new CreativeTab("Jewelry", 2);
public static CreativeTabs tabMisc = new CreativeTab("Miscellaneous", 3);
public static CreativeTabs tabTools = new CreativeTab("Tools", 6);
public static CreativeTabs tabArmor = new CreativeTab("Armor", 4);
public static CreativeTabs tabWeapons = new CreativeTab("Weapons", 5);
public static CreativeTabs tabConsumables = new CreativeTab("Consumables", 9);
public static CreativeTabs tabMaterials = new CreativeTab("Materials", 0);

 

and for example in a item class:

public ItemBasicFood(int i, int j, float b) {
	super(i, j, b, true);
	res = j;
	sat = b;
	this.setCreativeTab(BaseLegendz.tabConsumables);
}

 

and my creative tab code:

package legendz.common;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;

public class CreativeTab extends CreativeTabs{

private int ID;

public CreativeTab(String label, int id) {
	super(label);
	ID = id;
}

@Override
public ItemStack getIconItemStack() {
	switch(ID){
	default:
		return null;

	case 0:
		return new ItemStack(BaseLegendz.gemItem, 1, 0);

	case 1:
		return new ItemStack(BaseLegendz.recipeItem, 1, 0);

	case 2:
		return new ItemStack(BaseLegendz.earringItem, 1, 0);

	case 3:
		return new ItemStack(BaseLegendz.portalIgniter, 1, 0);

	case 4:
		return new ItemStack(BaseLegendz.aquaticChest, 1, 0);

	case 5:
		return new ItemStack(BaseLegendz.frozenFlamesBlade);

	case 6:
		return new ItemStack(BaseLegendz.energyPickaxe);

	case 7:
		return new ItemStack(BaseLegendz.legendzCraftingTable);

	case 8:
		return new ItemStack(BaseLegendz.questItem, 1, 0);

	case 9:
		return new ItemStack(BaseLegendz.mammothMeatItem);
	}
}

}

Link to comment
Share on other sites

not setting a title does not cuase a crash (tested).

the error

java.lang.NoClassDefFoundError: net/minecraft/creativetab/CreativeTabs

cannot be interpreted many ways. it surely looks like obfuscation didn't happen...

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.