public void write(BlockPayload block) { store.attach(block); maybeCache(block); dirty.put(block.getPos(), block); }
public void remove(BlockPayload block) { dirty.remove(block.getPos()); indexBlockCache.remove(block.getPos()); store.remove(block); }