Class UndoOperation
java.lang.Object
com.ldtteam.structurize.operations.BaseOperation
com.ldtteam.structurize.operations.UndoOperation
- All Implemented Interfaces:
ITickedWorldOperation
Operation for undo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix used in text search to check if it's an undo operationFields inherited from class com.ldtteam.structurize.operations.BaseOperation
storage -
Constructor Summary
ConstructorsConstructorDescriptionUndoOperation(net.minecraft.world.entity.player.Player player, ChangeStorage undoStorage) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(net.minecraft.server.level.ServerLevel world) Apply the operation on the world.Methods inherited from class com.ldtteam.structurize.operations.BaseOperation
getChangeStorage
-
Field Details
-
UNDO_PREFIX
Prefix used in text search to check if it's an undo operation- See Also:
-
-
Constructor Details
-
UndoOperation
Default constructor.- Parameters:
player- the player to trigger the undo.undoStorage- the change to undo.
-
-
Method Details
-
apply
public boolean apply(net.minecraft.server.level.ServerLevel world) Description copied from interface:ITickedWorldOperationApply the operation on the world.- Parameters:
world- the world to apply them on.- Returns:
- true if finished.
-