/ItemStainedFragileGlass Secret
Created
February 13, 2015 15:11
The ItemBlock for this block (registered properly)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ItemStainedFragileGlass extends ItemBlockWithMetadata | |
{ | |
public ItemStainedFragileGlass(Block b1) | |
{ | |
super(b1, b1); | |
} | |
@Override | |
public String getUnlocalizedName(ItemStack itemstack) { | |
return this.getUnlocalizedName() + "." + ItemDye.field_150921_b[itemstack.getItemDamage()]; | |
} | |
@SideOnly(Side.CLIENT) | |
@Override | |
public IIcon getIconFromDamage(int damage) | |
{ | |
return this.field_150939_a.getIcon(2, damage); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment