Posted June 21, 201213 yr I'm making a mod that includes chemistry (among other things), and I have a test tube item. I'm using addInformation to add the amount and some other info, but Minecraft's built in font renderer doesn't support subscripts, which I want to use to draw the chemical formula. I don't want to modify GuiContainer, so a hook for item tooltip rendering would be really useful. This could be implemented by adding an interface "IItemTooltipRenderer", then doing a check in GuiContainer.drawScreen to see if the item is an instance of IItemTooltipRenderer and calling the item's rendering logic instead of the standard logic. EDIT: Apparently Unicode subscript characters work, but this would still be useful to render icons representing element properties (radiation, acid, flammable, etc)
June 22, 201213 yr Make a good hook in the style of other Forge hooks. Then make it even more generic, the more generic the better. Make sure it cannot be done with reflection. Make sure it is well documented. If all those are covered, then submit a pull request on GitHub for your hook.
July 28, 201213 yr Is there any update on this? ellipsis, did you give it a try. This could also be quite useful for my own mod. I have actually even given coding it a try (with success). Hopefully it is general enough, although might need a bit more documentation. How do I go about a pull request? And is will you be releasing any more Forge versions for the moment or just wait for a 1.3 release (which I know will be a while) Thanks nerd-boy
August 7, 201213 yr I would love a hook like this myself. I'm currently using some creative reflection and such to render icons above the normal tooltip for some items, but would like a more generic way to do it.
August 8, 201213 yr Forge for MC 1.3.1 with its new dynamic hooking abilities (if you want to learn asm and such), should be capable of this.
August 9, 201213 yr This would be a God-send. I've been trying to find out ways to do this myself without base edits lol Metallurgy - http://www.minecraftforum.net/topic/744918-11ssp-smpforge-metallurgy-v13pr2/ Aquaculture - http://www.minecraftforum.net/topic/1285120-125-sspsmpbukkit-aquaculture-112-updated-742012/
August 21, 201213 yr I know this thread is old, but I've just posted a pull request for this hook. https://github.com/MinecraftForge/MinecraftForge/pull/137
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.