Java Code Examples for net.minecraft.item.Item.setCreativeTab()

The following are Jave code examples for showing how to use setCreativeTab() of the net.minecraft.item.Item class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Machines-and-Stuff   File: MItems.java   View Source Code Vote up 5 votes
public static void registerItemMeta(Item item, String name, String key) {
    if(DEVENV && FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT)
        writeFile(key, key);
    item.setCreativeTab(TAB);
    renderMap.put(key, item);
    
    GameRegistry.register(item, new ResourceLocation(Reference.MODID + ":" + key));
}
 
Example 2
Project: Anima-Mundi   File: AnimaItems.java   View Source Code Vote up 5 votes
public static void generalRegisterItem(String name, Item item, boolean genericModel)
{
	item.setUnlocalizedName(ModConstants.MODID + ":" + name);
	item.setRegistryName(name);
	item.setCreativeTab(AnimaTab.Tab);

	if(genericModel)
		items.add(item);
}
 
Example 3
Project: harshencastle   File: HarshenItems.java   View Source Code Vote up 4 votes
public static void regRender(Item item)
{
	item.setCreativeTab(HarshenCastle.harshenTab);
	ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
 
Example 4
Project: mc-Slingshot   File: ModItems.java   View Source Code Vote up 4 votes
private static void register(Item item) {
	item.setCreativeTab(CreativeTabs.COMBAT);
	GameRegistry.register(item);
	Slingshot.proxy.registerItemRenderer(item, 0, item.getRegistryName().toString());
}