Hello all
I'm trying to initialize an item when an ItemStack of it has entered the world without much luck. The Item.onCreated() method seems to only be called when the item is crafted or smelted but not when pulled out of a creative tab and I don't see any form of onDestroy() method.
For a little more info, I'm trying to implement item entities but I need to bind them to their respective item by saving a unique identifier to the item's metadata. And this needs to be done only once, when the item enters the world, and the entity needs to be destroyed when the item leaves the world.
Is there any way forge can help me with this problem? Or have I just missed something in vanilla?