@Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister par1IconRegister) { super.registerIcons(par1IconRegister); this.icon = IconHelper.forItem(par1IconRegister, this); if (hasOrnament()) ornament = IconHelper.forItem(par1IconRegister, this, "Orn"); if (hasDepth()) depth = IconHelper.forItem(par1IconRegister, this, "Depth"); }
@SuppressWarnings({"rawtypes", "unchecked"}) @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean blah) { NBTTagCompound tag; if (stack.hasTagCompound()) tag = stack.getTagCompound(); else tag = new NBTTagCompound(); list.add( StatCollector.translateToLocal("item.focusColoured.currentcolour") + ": " + StatCollector.translateToLocal( "colour." + tag.getInteger(IlluminatedBows.MODID + "colour"))); super.addInformation(stack, player, list, blah); list.add(StatCollector.translateToLocal("colour.shapelesscraft")); }