2013-07-16 09:00:57 +02:00
|
|
|
package StevenDimDoors.mod_pocketDim.items;
|
|
|
|
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.item.ItemBlock;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2013-07-16 22:54:48 +02:00
|
|
|
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
2013-07-16 09:00:57 +02:00
|
|
|
|
|
|
|
public class ItemBlockDimWall extends ItemBlock
|
|
|
|
{
|
2013-07-16 23:52:26 +02:00
|
|
|
private final static String[] subNames = {"Fabric of Reality", "Ancient Fabric"};
|
2013-07-16 09:00:57 +02:00
|
|
|
|
|
|
|
public ItemBlockDimWall(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
this.setCreativeTab(mod_pocketDim.dimDoorsCreativeTab);
|
|
|
|
setHasSubtypes(true);
|
|
|
|
}
|
|
|
|
public void registerIcons(IconRegister par1IconRegister)
|
|
|
|
{
|
|
|
|
this.itemIcon = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName().replace("tile.", ""));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getMetadata (int damageValue)
|
|
|
|
{
|
|
|
|
return damageValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getUnlocalizedName(ItemStack par1ItemStack)
|
|
|
|
{
|
2013-07-16 22:54:48 +02:00
|
|
|
return subNames[getItemDamageFromStack(par1ItemStack)];
|
2013-07-16 09:00:57 +02:00
|
|
|
}
|
|
|
|
}
|