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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateMazeRequest.PlacementReturns the enum constant of this class with the specified name.static CreateMazeRequest.Placement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
-