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

Method save

src/redempt/redlib/blockdata/backend/SQLiteBackend.java:84–89  ·  view source on GitHub ↗
(ChunkPosition pos, String data)

Source from the content-addressed store, hash-verified

82 }
83
84 @Override
85 public CompletableFuture<Void> save(ChunkPosition pos, String data) {
86 return CompletableFuture.runAsync(() -> {
87 helper.executeUpdate("REPLACE INTO data VALUES (?, ?, ?, ?);", pos.getX(), pos.getZ(), pos.getWorld().getName(), data);
88 }, exec);
89 }
90
91 @Override
92 public CompletableFuture<Void> remove(ChunkPosition pos) {

Callers

nothing calls this directly

Calls 5

executeUpdateMethod · 0.80
getXMethod · 0.45
getZMethod · 0.45
getNameMethod · 0.45
getWorldMethod · 0.45

Tested by

no test coverage detected