package com.elmakers.mine.bukkit.api.block;

import org.bukkit.block.Block;

public interface UndoQueue {
	public void add(UndoList blocks);
	public void removeScheduledCleanup(UndoList blocks);
	public UndoList getLast();
	public UndoList getLast(Block target);
}

@@ -255,11 +255,1087 @@
 target);
+%0A%0A    /**%0A     * Undo a recent construction performed by this Mage.%0A     *%0A     * This will restore anything changed by the last-cast%0A     * construction spell, and remove that construction from%0A     * the Mage's UndoQueue.%0A     *%0A     * It will skip undoing if the UndoList is older than%0A     * the specified timeout.%0A     *%0A     * @return The UndoList that was undone, or null if none.%0A     */%0A    public UndoList undoRecent(int timeout);%0A%0A    /**%0A     * Undo a recent construction performed by this Mage against the%0A     * given Block%0A     *%0A     * This will restore anything changed by the last-cast%0A     * construction spell by this Mage that targeted the specific Block,%0A     * even if it was not the most recent Spell cast by that Mage.%0A     *%0A     * It will skip undoing if the UndoList is older than%0A     * the specified timeout.%0A     *%0A     * @param block The block to check for modifications.%0A     * @return The UndoList that was undone, or null if the Mage has no constructions for the given Block.%0A     */%0A    public UndoList undoRecent(Block block, int timeout);
 %0A%7D%0A

Add UndoQueue.undoRecent