package org.freeforums.geforce.securitycraft.items; import net.minecraft.block.Block; import net.minecraft.item.ItemBlockWithMetadata; import net.minecraft.item.ItemStack; public class ItemBlockReinforcedPlanks extends ItemBlockWithMetadata{ public ItemBlockReinforcedPlanks(Block block) { super(block, block); } public String getUnlocalizedName(ItemStack stack){ if(stack.getItemDamage() == 0){ return this.getUnlocalizedName() + "_oak"; }else if(stack.getItemDamage() == 1){ return this.getUnlocalizedName() + "_spruce"; }else if(stack.getItemDamage() == 2){ return this.getUnlocalizedName() + "_birch"; }else if(stack.getItemDamage() == 3){ return this.getUnlocalizedName() + "_jungle"; }else if(stack.getItemDamage() == 4){ return this.getUnlocalizedName() + "_acacia"; }else if(stack.getItemDamage() == 5){ return this.getUnlocalizedName() + "_darkoak"; }else{ return this.getUnlocalizedName(); } } }