Enum Class MazeSnapshot.Status
- All Implemented Interfaces:
Serializable, Comparable<MazeSnapshot.Status>, Constable
- Enclosing class:
MazeSnapshot
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRemoval completed and the maze record has been deleted.Removal is restoring original terrain or clearing the maze volume.An operation was interrupted or failed and retained a recoverable record.The planned maze blocks are being written to the world.The topology exists and preparation is in progress.The maze's last world-editing operation completed successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic MazeSnapshot.StatusReturns the enum constant of this class with the specified name.static MazeSnapshot.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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
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
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
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 nameNullPointerException- if the argument is null
-