Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

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);
	}
}

}

did you grab reobfuscated classes (reobf directory)?

mnn.getNativeLang() != English

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

This may not be needed, but for my creative tab I had to also add another method, which is as follows.

LanguageRegistry.instance().addStringLocalization("itemGroup.TabName", "en_US", "Name Displayed In-game");

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.