Enum Class OperationKind

java.lang.Object
java.lang.Enum<OperationKind>
dev.despical.mazeengine.api.operation.OperationKind
All Implemented Interfaces:
Serializable, Comparable<OperationKind>, Constable

public enum OperationKind extends Enum<OperationKind>
Identifies the world-editing action associated with an operation.

The kind is assigned when a request is accepted and remains attached to its handle, result, and events. It describes the action rather than the current planning, preflight, storage, or block-writing stage.

  • Enum Constant Details

    • CREATE

      public static final OperationKind CREATE
      Creates a new maze from a request and a current configured preset.

      The operation reserves a new identifier, plans topology, performs preflight, and optionally captures original terrain before writing the structure.

    • REGENERATE

      public static final OperationKind REGENERATE
      Rebuilds an existing maze using its frozen preset and a supplied seed.

      The full structure is reapplied. Any original terrain snapshot is retained for a later restore rather than recaptured from the existing maze.

    • REPAIR

      public static final OperationKind REPAIR
      Repairs planned non-air structure using the existing seed and topology.

      Planned air positions are skipped to preserve passage contents. Repair uses the regeneration permission and ownership rules.

    • DELETE

      public static final OperationKind DELETE
      Removes a maze by restoring terrain or clearing its bounded volume.

      Successful removal deletes the saved record. Its result retains an immutable description with the DELETED status for listeners and completion callbacks.

  • Method Details

    • values

      public static OperationKind[] 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 OperationKind 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