Posted March 8, 201411 yr I have a hash map that I want to store as nbt. I write on FMLServerStoppingEvent and read on FMLServerStartingEvent. The hash map is as so: Public static Map<String, Set<Research>> researchedByPlayer = new HashMap<String, Set<Research>>(); I have a method to get the name of the research as a string aswell as find the research by a string. I thought of doing it by looping through the keys of the map and saving each as a string in nbt then doing the same for the values by iterating through the set and getting the name to save. I don't know how I and then just do the reverse for loading. Is this the correct way or should I do it a different way? Creator of Jobo's ModLoader If I helped you could you please click the thank you button and applaud my karma.
March 8, 201411 yr Author I looked into IExtendedEntityProperties but it wouldn't work for what I want. Creator of Jobo's ModLoader If I helped you could you please click the thank you button and applaud my karma.
March 9, 201411 yr Author nvm, solved myself Creator of Jobo's ModLoader If I helped you could you please click the thank you button and applaud my karma.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.