Jump to content

Items


Chibill

Recommended Posts

package mymod;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;

public class modItem extends Item
{
         private String itemTexture;
         public modItem (int par1, String texture)
         {
                 super(par1);
                 itemTexture = texture;
         }
         @Override
         @SideOnly(Side.CLIENT)
         public void func_94581_a(IconRegister iconRegister)
         {
                 iconIndex = iconRegister.func_94245_a("mymodid:"+itemTexture);
         }
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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