@SuppressWarnings({"all"}) // @Override (client only) public void addInformation(ItemStack itemstack, List list) { BptBase bpt = BuildCraftBuilders.getBptRootIndex().getBluePrint(itemstack.getItemDamage()); if (bpt != null) { list.add(bpt.getName()); } }
@Override public int getIconFromDamage(int i) { BptBase bpt = BuildCraftBuilders.getBptRootIndex().getBluePrint(i); if (bpt == null) { return 5 * 16 + 2; } else { return 5 * 16 + 3; } }