Enum Class CreateMazeRequest.Placement

java.lang.Object
java.lang.Enum<CreateMazeRequest.Placement>
dev.despical.mazeengine.api.request.CreateMazeRequest.Placement
All Implemented Interfaces:
Serializable, Comparable<CreateMazeRequest.Placement>, Constable
Enclosing class:
CreateMazeRequest

public static enum CreateMazeRequest.Placement extends Enum<CreateMazeRequest.Placement>
Determines which existing blocks are accepted by creation preflight.

These policies affect acceptance of the target volume. Once accepted, all policies build the structure selected by the resolved preset.

  • Enum Constant Details

    • CLEAR

      public static final CreateMazeRequest.Placement CLEAR
      Allows the bounded volume to be cleared and rebuilt.

      Occupied-block preflight does not restrict existing materials. Region, player-safety, and configured size checks still apply.

    • SAFE

      public static final CreateMazeRequest.Placement SAFE
      Requires air above the floor and replaceable material on the floor.

      A non-air block above the floor rejects creation. Non-air floor blocks must appear in the server's configured replaceable-material list.

    • REPLACE

      public static final CreateMazeRequest.Placement REPLACE
      Allows replacement of air and configured replaceable materials.

      Every non-air block in the volume must appear in the server's replaceable-material list, including blocks above the floor.

  • Method Details

    • values

      public static CreateMazeRequest.Placement[] 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 CreateMazeRequest.Placement 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