Class BlockChange

java.lang.Object
com.sk89q.worldedit.history.change.BlockChange
All Implemented Interfaces:
Change

public class BlockChange extends Object implements Change
Represents a block change that may be undone or replayed.

This block change does not have an Extent assigned to it because one will be taken from the passed UndoContext. If the context does not have an extent (it is null), cryptic errors may occur.

  • Constructor Details

    • BlockChange

      public BlockChange(BlockVector3 position, BP previous, BC current)
      Create a new block change.
      Parameters:
      position - the position
      previous - the previous block
      current - the current block
  • Method Details