Class BaseOperation
java.lang.Object
com.ldtteam.structurize.operations.BaseOperation
- All Implemented Interfaces:
ITickedWorldOperation
- Direct Known Subclasses:
AreaOperation,PlaceStructureOperation,RedoOperation,RemoveEntityOperation,UndoOperation
Base class for handling the root mechanics of any operation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseOperation(ChangeStorage storage) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull ChangeStorageGet the current change storage of this operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ldtteam.structurize.util.ITickedWorldOperation
apply
-
Field Details
-
storage
The change storage holder.
-
-
Constructor Details
-
BaseOperation
Default constructor.
-
-
Method Details
-
getChangeStorage
Description copied from interface:ITickedWorldOperationGet the current change storage of this operation.- Specified by:
getChangeStoragein interfaceITickedWorldOperation- Returns:
- the ChangeStorage object.
-