Posted August 7, 201312 yr I was wondering if there's already an external or forge-implemented API for adding tabs, specifically to the player's inventory screen (<E> Key.) The effect I'm looking for is something like what Tinkers' Construct has for its extra armor/accessories tab and its knapsack tab (Direwolf20 shows it off in his mod spotlight found in that link at 25:00 minutes.) Now, I know I can fake it by drawing on tabs in the tick handler when the current gui screen is the player inventory, but handling that and disabling/enabling inventories to only draw when a certain tab is active is going to get very tricky and/or messy, which is why I'm wondering if there's a better, probably more streamlined and compatible (E.g. so my tabs won't draw on top or under Tinkers' tabs) way to do it. Thanks in advance. P.S. I haven't yet updated my mod from 1.5.2 to 1.6.2. If the method to do this is 1.6.2 only, that'd be good to know http://img836.imageshack.us/img836/1237/cooltext624963071.png[/img] I make games, minecraft mods/plugins, and some graphic art. Current Project: LoECraft - An industrial minecraft server with its own modpack and custom launcher.
August 7, 201312 yr I would suggest looking into vanilla creative inventory code. That would allow you to see how the tabs are added and such. I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
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.