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

Method load

src/redempt/redlib/blockdata/backend/PDCBackend.java:21–25  ·  view source on GitHub ↗
(ChunkPosition pos)

Source from the content-addressed store, hash-verified

19 }
20
21 @Override
22 public CompletableFuture<String> load(ChunkPosition pos) {
23 PersistentDataContainer pdc = pos.getWorld().getChunkAt(pos.getX(), pos.getZ()).getPersistentDataContainer();
24 return CompletableFuture.completedFuture(pdc.get(key, PersistentDataType.STRING));
25 }
26
27 @Override
28 public CompletableFuture<Void> save(ChunkPosition pos, String data) {

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
getWorldMethod · 0.45
getXMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected