Class UndoContext

java.lang.Object
com.sk89q.worldedit.history.UndoContext

public class UndoContext extends Object
Provides context for undo and redo operations.

For example, BlockChanges take the Extent from the context rather than store a reference to one.

  • Constructor Details

    • UndoContext

      public UndoContext()
  • Method Details

    • getExtent

      @Nullable public Extent getExtent()
      Get the extent set on this context.
      Returns:
      an extent or null
    • setExtent

      public void setExtent(@Nullable Extent extent)
      Set the extent on this context.
      Parameters:
      extent - an extent or null