@Override public void addInformation(ItemStack itemStack, World player, List<String> list, ITooltipFlag advancedToolTip) { super.addInformation(itemStack, player, list, advancedToolTip); list.add("Every piece of the radiation suit"); list.add("adds a bit of protection for radiation"); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack armor, EntityPlayer player, List<String> par3List, boolean par4) { super.addInformation(armor, player, par3List, par4); par3List.add(String.format("%s +%d %s", TextFormatting.BLUE, this.damageReduceAmount, I18n.format("tooltip.armour.points"))); par3List.add(TextFormatting.RED + I18n.format("attribute.modifier.take." + 2, ItemStack.DECIMALFORMAT.format(-motionFactor*100.0D), I18n.format("attribute.name.generic.movementSpeed"))); }
@SuppressWarnings("rawtypes") @SideOnly(Side.CLIENT) @Override public void addInformation(ItemStack itemStack, World world, List<String> list, ITooltipFlag flag) { super.addInformation(itemStack, world, list, flag); L10NHelpers.addOptionalInfo(list, getUnlocalizedName()); }
@Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { NBTTagCompound plateNBT = getPlateNBT(stack); if (plateNBT != null) { ItemStack plateStack = new ItemStack(plateNBT.getCompoundTag("Stack")); if (!plateStack.isEmpty()) { tooltip.add(TextFormatting.BLUE + plateStack.getDisplayName()); } } super.addInformation(stack, worldIn, tooltip, flagIn); }
@SideOnly(Side.CLIENT) @Override public void addInformation(ItemStack held, World player, List<String> list, net.minecraft.client.util.ITooltipFlag par4) { list.add(UtilChat.lang(this.getTranslationKey() + ".tooltip")); String onoff = this.isOn(held) ? "on" : "off"; list.add(UtilChat.lang("item.cantoggle.tooltip.info") + " " + UtilChat.lang("item.cantoggle.tooltip." + onoff)); super.addInformation(held, player, list, par4); }
@Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); if (stack.hasTagCompound() && stack.getTagCompound().hasKey("NewTradesLevel")) { int level = stack.getTagCompound().getInteger("NewTradesLevel"); tooltip.add(TextFormatting.GREEN + I18n.format("esteemedinnovation.exosuit.level", level)); } } }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, World world, List<String> out, ITooltipFlag flag) { super.addInformation(stack, world, out, flag); out.add(Helpers.translateToLocal(getTranslationKey(stack) + ".desc")); NBTTagCompound tag = stack.getTagCompound(); if (flag.isAdvanced()) { if (tag != null && tag.hasKey(COMPUTER_ID)) { out.add("Computer ID " + tag.getInteger(COMPUTER_ID)); } } if (LoadedCache.hasBotania()) { ItemStack cosmetic = getCosmeticItem(stack); if (!cosmetic.isEmpty()) { out.add(Helpers .translateToLocalFormatted("botaniamisc.hasCosmetic", cosmetic.getDisplayName()) .replaceAll("&", "\u00a7")); } } }
super.addInformation(stack, world, tooltip, flag);
@Override public void addInformation(ItemStack me, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { super.addInformation(me, worldIn, tooltip, flagIn); if (me.hasTagCompound()) {