Added ItemTR.class for easy item creation

This commit is contained in:
Gig 2015-04-11 00:37:04 +01:00
parent 6df95800e1
commit 1704f989c5
2 changed files with 21 additions and 1 deletions

View file

@ -10,7 +10,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
public class ItemDusts extends Item
public class ItemDusts extends ItemTR
{
public static final String[] types = new String[]
{

View file

@ -0,0 +1,20 @@
package techreborn.items;
import techreborn.client.TechRebornCreativeTab;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
public class ItemTR extends Item{
public ItemTR()
{
setCreativeTab(TechRebornCreativeTab.instance);
}
@Override
public void registerIcons(IIconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("techreborn" + ":" + getUnlocalizedName().toLowerCase().substring(5));
}
}