Hi,
I am just trying to store a 'PlayerInventory' object to a json file - or at least the contents of it all. I seem to be struggling with this a little and was hoping the broader community would have a good idea. I've been using Gson this entire time to write my objects to files as json which has been very nice and would like to keep it that way if possible. I tried using getNbt() calls on individual ItemStack's in the player inventory; however, it appears that can return null even if an item is in the stack (verified through printing out item name + getNbt == null)
Any ideas? Thanks.