Ok, so I've got this item "GenericItem" with a Readable name and everything, but I can NOT give it a texture! I've looked at several forums, and what the wiki tells me is not correct, and ends up crashing. I've tried tons of locations, none with success. It always ends up as blank item that says "Missing Texture"
Here's my GenericItem.java
package tutorial.generic;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class GenericItem extends Item
{
private Object iconIndex;
public GenericItem(int id)
{
super(id);
// Constructor Configuration
this.setMaxStackSize(64);
this.setCreativeTab(CreativeTabs.tabMisc);
this.setUnlocalizedName("genericItem");
LanguageRegistry.addName(this, "Generic Item");
}
@SideOnly(Side.CLIENT)
public void updateIcons(IconRegister iconRegister)//updateIcons
{
iconIndex = iconRegister.registerIcon("Generic:genericItem");
}
}