Posted March 6, 20169 yr In 1.7 I was using IItemRenderer to render an energy bar for the rf in an item, but now that IItemRenderer is no more. What is the prefered method of doing the same thing in 1.8.9? Thanks.
March 7, 20169 yr Override Item#showDurabilityBar to return true when the current RF is less than the maximum and Item#getDurabilityForDisplay to return the percentage of the durability bar to fill (i.e. (maxRF - currentRF) / maxRF ). Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
March 7, 20169 yr Author Unfortunately the item in question also has durability, so I'm not able to use the durability bar for energy.
March 7, 20169 yr Ah, that makes things trickier. You may be able to use ISmartItemModel to render the bar, but I don't know enough about rendering or the model system to help you any further. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.