(ChunkPosition pos)
| 180 | } |
| 181 | |
| 182 | private CompletableFuture<Void> unload(ChunkPosition pos) { |
| 183 | CompletableFuture<Void> load = loading.remove(pos); |
| 184 | if (load != null) { |
| 185 | load.cancel(true); |
| 186 | dataBlocks.remove(pos); |
| 187 | return CompletableFuture.completedFuture(null); |
| 188 | } |
| 189 | return save(pos, false).thenRun(() -> dataBlocks.remove(pos)); |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Removes a DataBlock and its data from this BlockDataManager |
no test coverage detected