Hello,
I've been trying to implement Electric Shears for my Unidye mod but I am having trouble. Currently with the 'Electric' part of all this, although by looking at the class IteamShear and EntitySheep let me know that implementing the shear function to my custom item might be a little harder than what I have done until now.
But now, to my problem:
First of all, I am still using Minecraft 1.5.2 and IC2/IC2 API on version 1.116.
I have pretty much followed this tutorial by AGKz about making your own electric Item and it works pretty well so far, it drains EU by a dummy function (using 100 EU on Right Click with the Item in your active Slot) and recharges on its assigned transferLimit, but it seems the bar on the icon in your hotbar does not seem to update. I have looked a bit into the item part of the api and did not really find what I was looking for. How can I force updates to the bar so it actually shows the current EU stored? (Note: There is also no text on the current Charge Status when hovering over the icon.) I am guessing it will have to do something with metadata like the electricWrench uses, but I am a little lost.
I uploaded the ItemElectricShears class here. Any help would be gladly appreciated!