Enum Class MazeOperations.RemovalMode
- All Implemented Interfaces:
Serializable, Comparable<MazeOperations.RemovalMode>, Constable
- Enclosing interface:
MazeOperations
Determines what happens to the maze's block volume during removal.
The policy affects terrain handling only. Successful removal also deletes the saved maze metadata and releases its identifier.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MazeOperations.RemovalModeReturns the enum constant of this class with the specified name.static MazeOperations.RemovalMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Restores original terrain when the maze has a recorded snapshot.If no snapshot was recorded, removal clears the volume to air. A recorded but missing snapshot is a restore error and does not fall back to clearing.
-
RESTORE
Requires restoration of the complete original terrain snapshot.WorldEdit or FAWE and the saved snapshot file must be available. A maze without a complete snapshot is rejected before removal is submitted.
-
CLEAR
Clears the entire bounded volume to air.This policy clears terrain even when an original snapshot exists. It does not require WorldEdit or FAWE for snapshot restoration.
-
-
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
-