Skip to content

Instantly share code, notes, and snippets.

Created February 13, 2015 15:11
The ItemBlock for this block (registered properly)
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