Posted March 13, 20178 yr I'd like to show more information on tooltip when the item that has mouseover is in the player inventory and hide that information if the item is in other container as chest, anvil, etc... Is there a way to find where the itemstack is? And check it in Item.addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced)? Thanks
March 13, 20178 yr My first idea would be to check EntityPlayer#openContainer and see whether it's an instance of ContainerPlayer or something else.
March 13, 20178 yr That's pretty much the only way you're going to be able to do it. 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.