history_manager¶
-
class
amulet.api.history_manager.
ChunkHistoryManager
(temp_dir)[source]¶ Bases:
object
Class to manage changes and deletions of chunks
-
create_undo_point
(chunk_cache)[source]¶ Find all the chunks which have changed since the last snapshot, serialise them and store the path to the file (or None if it has been deleted)
-
redo
(chunk_cache)[source]¶ Re-increments the internal change index and un-serialises the chunks from the next newest change
-