MCPcopy Create free account
hub / github.com/boxbeam/RedLib / save

Method save

src/redempt/redlib/blockdata/BlockDataManager.java:132–137  ·  view source on GitHub ↗

Saves all data loaded in this BlockDataManager

()

Source from the content-addressed store, hash-verified

130 * Saves all data loaded in this BlockDataManager
131 */
132 public void save() {
133 List<ChunkPosition> modified = new ArrayList<>(this.modified);
134 modified.forEach(c -> save(c, true));
135 this.modified.clear();
136 unwrap(backend.saveAll());
137 }
138
139 /**
140 * Saves all data loaded in this BlockDataManager and closes connections where needed

Callers 3

saveAndCloseMethod · 0.95
unloadMethod · 0.95
loadAllMethod · 0.95

Calls 11

unwrapMethod · 0.95
toStringMethod · 0.95
forEachMethod · 0.80
saveAllMethod · 0.65
removeMethod · 0.65
getMethod · 0.65
toStringMethod · 0.65
saveMethod · 0.65
clearMethod · 0.45
containsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected