Class UndoOperation

java.lang.Object
com.ldtteam.structurize.operations.BaseOperation
com.ldtteam.structurize.operations.UndoOperation
All Implemented Interfaces:
ITickedWorldOperation

public class UndoOperation extends BaseOperation
Operation for undo.
  • Field Details

    • UNDO_PREFIX

      public static final String UNDO_PREFIX
      Prefix used in text search to check if it's an undo operation
      See Also:
  • Constructor Details

    • UndoOperation

      public UndoOperation(net.minecraft.world.entity.player.Player player, ChangeStorage undoStorage)
      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: ITickedWorldOperation
      Apply the operation on the world.
      Parameters:
      world - the world to apply them on.
      Returns:
      true if finished.