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

Method load

src/redempt/redlib/blockdata/backend/SQLiteBackend.java:77–82  ·  view source on GitHub ↗
(ChunkPosition pos)

Source from the content-addressed store, hash-verified

75 }
76
77 @Override
78 public CompletableFuture<String> load(ChunkPosition pos) {
79 return CompletableFuture.supplyAsync(() -> {
80 return helper.querySingleResultString("SELECT data FROM data WHERE x=? AND z=? AND world=?", pos.getX(), pos.getZ(), pos.getWorld().getName());
81 }, exec);
82 }
83
84 @Override
85 public CompletableFuture<Void> save(ChunkPosition pos, String data) {

Callers

nothing calls this directly

Calls 5

getXMethod · 0.45
getZMethod · 0.45
getNameMethod · 0.45
getWorldMethod · 0.45

Tested by

no test coverage detected