Enum Class MazeSnapshot.Status

java.lang.Object
java.lang.Enum<MazeSnapshot.Status>
dev.despical.mazeengine.api.model.MazeSnapshot.Status
All Implemented Interfaces:
Serializable, Comparable<MazeSnapshot.Status>, Constable
Enclosing class:
MazeSnapshot

public static enum MazeSnapshot.Status extends Enum<MazeSnapshot.Status>
Describes the saved lifecycle of a maze record.

Busy states describe world work in progress. FAILED may retain partially changed terrain for recovery; it does not mean an automatic rollback ran. DELETED is exposed only in successful removal results and events.

  • Enum Constant Details

    • PREPARING

      public static final MazeSnapshot.Status PREPARING
      The topology exists and preparation is in progress.

      Preflight and optional terrain capture precede generation. This state does not by itself guarantee that a complete original snapshot is available.

    • GENERATING

      public static final MazeSnapshot.Status GENERATING
      The planned maze blocks are being written to the world.

      Creation, regeneration, and repair apply their structure in tick budgets. The world may contain only part of the intended structure at this stage.

    • READY

      public static final MazeSnapshot.Status READY
      The maze's last world-editing operation completed successfully.

      This state describes the saved record. It does not verify that players have left every generated block unchanged since completion.

    • DELETING

      public static final MazeSnapshot.Status DELETING
      Removal is restoring original terrain or clearing the maze volume.

      The record remains visible while removal runs. Successful removal deletes its persisted metadata and releases the identifier.

    • FAILED

      public static final MazeSnapshot.Status FAILED
      An operation was interrupted or failed and retained a recoverable record.

      Blocks may already have changed. Inspect the saved error and operation failure before deciding whether to regenerate, repair, or remove it.

    • DELETED

      public static final MazeSnapshot.Status DELETED
      Removal completed and the maze record has been deleted.

      This value appears in removal results and completion events. Deleted mazes are absent from registry queries.

  • Method Details

    • values

      public static MazeSnapshot.Status[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MazeSnapshot.Status valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null