I'm storing some additional data with some items, sort of like computercraft does with disks. The only problem I'm having is how to find the path, in which to save it.
I want some code to run when a tilentity is loaded and has it's worldObj set so I can get a reference to the world. I tried putting my code in the constructor but that code will run before worldObj is set. I also tried override setWorldObj and put my code there but it appears the function never gets called.
How would I know when my tileentity has gotten a world reference?
I want to store a reference to a specific mob in the NBT compound associated with a tileentity. I'm almost certain entities have a unique ID of sorts but I couldn't quite figure it out.
How would I store and load a reference to a mob in the NBT?