Posted October 21, 20178 yr my code is freaking out, I just about have everything maybe functional, (1.10.2 -> 1.12.2) but I can't figure out how to fix my tooltips, I have 3 Item classes that incorporate tooltips all of the code they use for this is copied from this first file, with the text formatting tweaked. ItemBloodstone.java
October 28, 20178 yr Author Ok but i figured it out though: In 1.10 the last parameter in addInformation was a boolean value, Now it's a class called ITooltipFlag @Override public void addInformation(ItemStack stack, World playerIn, List<String> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, playerIn, tooltip, flagIn); tooltip.add(TextFormatting.GRAY + "" + TextFormatting.ITALIC + Util.getLang().localize(getUnlocalizedName() + ".tooltip")); }
October 28, 20178 yr 10 hours ago, TastesLikeBleach said: tooltip.add(TextFormatting.GRAY + "" + TextFormatting.ITALIC + Util.getLang().localize(getUnlocalizedName() + ".tooltip")); You don't need that empty string between GRAY and ITALIC. Also, I18n.format() is a thing. I don't know why you're using your own localize function. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.