Package me.c7dev.dexterity.transaction
Class BlockTransaction
java.lang.Object
me.c7dev.dexterity.transaction.BlockTransaction
- All Implemented Interfaces:
Transaction
- Direct Known Subclasses:
RotationTransaction
,ScaleTransaction
Essentially stores the
BlocktransactionLine
list
This is the most common transaction type-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
commitBlock
(DexBlock db) void
commitCenter
(org.bukkit.Location new_loc) void
boolean
boolean
boolean
isUndone()
void
redo()
undo()
-
Constructor Details
-
BlockTransaction
public BlockTransaction() -
BlockTransaction
-
BlockTransaction
-
-
Method Details
-
addBlock
-
commitBlock
-
commit
-
commit
-
commitEmpty
public void commitEmpty() -
commitCenter
public void commitCenter(org.bukkit.Location new_loc) -
undo
- Specified by:
undo
in interfaceTransaction
-
redo
public void redo()- Specified by:
redo
in interfaceTransaction
-
isPossible
public boolean isPossible()- Specified by:
isPossible
in interfaceTransaction
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceTransaction
-
isUndone
public boolean isUndone()- Specified by:
isUndone
in interfaceTransaction
-