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

Method save

src/redempt/redlib/blockdata/backend/PDCBackend.java:27–32  ·  view source on GitHub ↗
(ChunkPosition pos, String data)

Source from the content-addressed store, hash-verified

25 }
26
27 @Override
28 public CompletableFuture<Void> save(ChunkPosition pos, String data) {
29 PersistentDataContainer pdc = pos.getWorld().getChunkAt(pos.getX(), pos.getZ()).getPersistentDataContainer();
30 pdc.set(key, PersistentDataType.STRING, data);
31 return CompletableFuture.completedFuture(null);
32 }
33
34 @Override
35 public CompletableFuture<Void> remove(ChunkPosition pos) {

Callers

nothing calls this directly

Calls 4

setMethod · 0.65
getWorldMethod · 0.45
getXMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected