Package my.celium.org.data
package my.celium.org.data
Safe JSON files for a mod's own data: atomic writes, broken files kept aside instead of overwritten.
-
ClassesClassDescriptionOne JSON file a mod keeps its own data in (pets, highlights, saved lists), with the safety Mycel's config files have: writes are atomic (temp file + move), so a crash mid-save never leaves half-written JSON behind; a file that cannot be parsed is moved aside to
<name>.broken(never deleted or overwritten) and reading continues with the fallback, so the next save cannot destroy it; files over the size cap (16 MiB by default) are refused the same way.