@Override @SideOnly(Side.CLIENT) public void addInformation( ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4); if (par4) { par3List.add("Part ID: " + getPartTypeID(par1ItemStack)); par3List.add("Hex: " + Integer.toHexString(getPartTypeID(par1ItemStack))); } }
@Override @SideOnly(Side.CLIENT) // マウスオーバー時の表示情報 public void addInformation(ItemStack item, EntityPlayer player, List list, boolean b) { super.addInformation(item, player, list, b); boolean flag = Loader.isModLoaded("NotEnoughItems") && Loader.isModLoaded("DCsNEIPluginAMT"); if (flag) { list.add(EnumChatFormatting.ITALIC + "Push NEI Usage key : display recipes"); } }
@Override @SideOnly(Side.CLIENT) public void addInformation( ItemStack itemStack, EntityPlayer par2EntityPlayer, List list, boolean par4) { list.add( Lang.localize("tile.enderio.blockCapacitorBank.tooltipPrefix", false) + " " + PowerDisplayUtil.formatPower(PowerHandlerUtil.getStoredEnergyForItem(itemStack)) + " " + PowerDisplayUtil.abrevation()); super.addInformation(itemStack, par2EntityPlayer, list, par4); }
@Override public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean flag) { super.addInformation(itemStack, player, list, flag); if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) { String[] tooltipLines = StatCollector.translateToLocal(getUnlocalizedName(itemStack) + ".tooltip").split("\\\\n"); for (String s : tooltipLines) { list.add("\u00a73" + s); } } else { list.add("\u00a76" + StatCollector.translateToLocal(Strings.TOOLTIP_SHIFT)); } }