@Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); tooltip.add(TextFormatting.RED + I18n.format("tooltip.compactmachines3.wall.hint")); } }
@Override @SideOnly(Side.CLIENT) public void addInformation(@Nonnull ItemStack stack, @Nullable World worldIn, @Nonnull List<String> tooltip, @Nonnull ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); tooltip.add(Lang.BLOCK_BLAST_RESISTANT.get()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag advanced) { super.addInformation(stack, world, tooltip, advanced); ItemTooltipUtil.addInformation(stack, world, tooltip, advanced); }
@Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); if(GuiScreen.isShiftKeyDown()) { tooltip.add(TextFormatting.YELLOW + I18n.format("tooltip." + CompactMachines3.MODID + ".fieldprojector.hint")); } else { tooltip.add(TextFormatting.GRAY + I18n.format("tooltip." + CompactMachines3.MODID + ".hold_shift.hint")); } } }
@Override @SideOnly( Side.CLIENT ) public void addInformation( final ItemStack stack, final World worldIn, final List<String> tooltip, final ITooltipFlag advanced ) { super.addInformation( stack, worldIn, tooltip, advanced ); ChiselsAndBits.getConfig().helpText( LocalStrings.HelpBitTank, tooltip ); } }
@Override public void addInformation(ItemStack stack, @Nullable World playerIn, List<String> tooltip, ITooltipFlag advanced) { super.addInformation(stack, null, tooltip, advanced); NBTTagCompound tagCompound = stack.getTagCompound(); if (tagCompound == null || !tagCompound.hasKey("regName")) { tooltip.add(TextFormatting.BLUE + "Right or sneak-right click on block to mimic"); tooltip.add(TextFormatting.BLUE + "Right or sneak-right click on cable/connector to hide"); } else { String regName = tagCompound.getString("regName"); int meta = tagCompound.getInteger("meta"); Block value = ForgeRegistries.BLOCKS.getValue(new ResourceLocation(regName)); if (value != null) { ItemStack s = new ItemStack(value, 1, meta); if (s.getItem() != null) { tooltip.add(TextFormatting.BLUE + "Mimicing " + s.getDisplayName()); } } } } }
@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("coords")) { int coords = stack.getTagCompound().getInteger("coords"); if(coords > -1) { tooltip.add(TextFormattingHelper.colorizeKeyValue(I18n.format("tooltip.compactmachines3.machine.coords") + " #" + coords)); } } if(GuiScreen.isShiftKeyDown()) { int size = Blockss.machine.getStateFromMeta(stack.getItemDamage()).getValue(BlockMachine.SIZE).getDimension() - 1; String sizeString = size + "x" + size + "x" + size; tooltip.add(TextFormatting.YELLOW + I18n.format("tooltip.compactmachines3.machine.hint", I18n.format(this.getTranslationKey(stack) + ".name"), sizeString)); } else { tooltip.add(TextFormatting.GRAY + I18n.format("tooltip." + CompactMachines3.MODID + ".hold_shift.hint")); } } }
@Override @SideOnly( Side.CLIENT ) public void addInformation( final ItemStack stack, final World worldIn, final List<String> tooltip, final ITooltipFlag advanced ) { super.addInformation( stack, worldIn, tooltip, advanced ); ChiselsAndBits.getConfig().helpText( LocalStrings.HelpChiseledBlock, tooltip, ClientSide.instance.getKeyName( Minecraft.getMinecraft().gameSettings.keyBindUseItem ), ClientSide.instance.getKeyName( ClientSide.getOffGridPlacementKey() ) ); if ( stack.hasTagCompound() ) { if ( ClientSide.instance.holdingShift() ) { if ( tooltipCache.needsUpdate( stack ) ) { final VoxelBlob blob = ModUtil.getBlobFromStack( stack, null ); tooltipCache.updateCachedValue( blob.listContents( new ArrayList<String>() ) ); } tooltip.addAll( tooltipCache.getCached() ); } else { tooltip.add( LocalStrings.ShiftDetails.getLocal() ); } } }