Jump to content




Persistent Data in Turtle Upgrade

java help peripheral

  • You cannot reply to this topic
2 replies to this topic

#1 faubiguy

  • Members
  • 213 posts

Posted 01 November 2012 - 09:27 PM

I'm making a turtle upgrade peripheral, and I need to have data that isn't reset when the world is reloaded. What should I do to do this? Should I save it to a file, and reload it when the peripheral is created?

#2 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 02 November 2012 - 05:02 AM

File saving would be the best option in my opinion

#3 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 03 November 2012 - 03:01 AM

The best option would be a readFromNBT/writeToNBT method in the turtle upgrade class. However, as the devs don't change anything on the apis anymore, I don't expect that to happen.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users