Added ItemTR.class for easy item creation
This commit is contained in:
parent
6df95800e1
commit
1704f989c5
2 changed files with 21 additions and 1 deletions
|
@ -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[]
|
||||
{
|
||||
|
|
20
src/main/java/techreborn/items/ItemTR.java
Normal file
20
src/main/java/techreborn/items/ItemTR.java
Normal 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));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue