Hello
Like the title says, the inventory contents are not being saved after a relog.
I use an unsupported version of Forge, though.
If this system has changed during the update after 1.7.10 feel and no one knows the answer, free to delete this thread. (If the answer has been given please do not delete this, as it might help others out)
Basically I have made a Container and GuiScreen which are opened by a keypress. It's all opening and such, and everything kind of works except for the fact that my inventory is not saving itself after a reload.
I probably messed up somewhere.
Here is the code...
IExtendedEntityProperty:
IInventory
I also use a PacketHandler, yet I do not really know why I have to use it...
In case anyone is wondering; this will be custom EntityPlayer inventory, used to store rings
And yes, I do know I'm still using the examplemod package and such. This is my playground project.
I did my best formatting this post, please be gentle!
Thank you and sorry for the long thread.
EDIT:
I fixed it, basically when getting an instance of an NBTTagList you can use a cast from NBTBase to NBTTagList. First I tried it with compound.getTagList("ringInventory", but that did NOT work for whatever reason. If you know why it did not work, please comment and I will add it to the answer.