Class BlockTransaction

java.lang.Object
me.c7dev.dexterity.transaction.BlockTransaction
All Implemented Interfaces:
Transaction
Direct Known Subclasses:
RotationTransaction, ScaleTransaction

public class BlockTransaction extends Object implements Transaction
Essentially stores the BlocktransactionLine list This is the most common transaction type
  • Constructor Details

    • BlockTransaction

      public BlockTransaction()
    • BlockTransaction

      public BlockTransaction(DexterityDisplay disp)
    • BlockTransaction

      public BlockTransaction(DexterityDisplay disp, Mask mask)
  • Method Details

    • addBlock

      public void addBlock(DexBlock block)
    • commitBlock

      public void commitBlock(DexBlock db)
    • commit

      public void commit(DexBlock[] blocks)
    • commit

      public void commit(DexBlock[] blocks, Mask mask, boolean include_removed_blocks)
    • commitEmpty

      public void commitEmpty()
    • commitCenter

      public void commitCenter(org.bukkit.Location new_loc)
    • undo

      public DexterityDisplay undo()
      Specified by:
      undo in interface Transaction
    • redo

      public void redo()
      Specified by:
      redo in interface Transaction
    • isPossible

      public boolean isPossible()
      Specified by:
      isPossible in interface Transaction
    • isCommitted

      public boolean isCommitted()
      Specified by:
      isCommitted in interface Transaction
    • isUndone

      public boolean isUndone()
      Specified by:
      isUndone in interface Transaction