Record Class MazeGeometry
java.lang.Object
java.lang.Record
dev.despical.mazeengine.api.model.MazeGeometry
- Record Components:
pathWidth- the corridor width, from 1 through 16 blockswallThickness- the wall thickness, from 1 through 8 blockswallHeight- the wall height, from 2 through 64 blocks
Describes structural maze dimensions in Minecraft blocks.
Path width is the usable corridor width; wall thickness separates adjacent cells. Wall height counts the vertical wall blocks above the floor and excludes both the floor and an optional roof layer.
This value validates the supported structural ranges. The final block volume depends on the logical grid and is checked against server limits at submission.
-
Constructor Summary
ConstructorsConstructorDescriptionMazeGeometry(int pathWidth, int wallThickness, int wallHeight) Constructs a complete set of supported structural dimensions. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepathWidthrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewallHeightrecord component.intReturns the value of thewallThicknessrecord component.
-
Constructor Details
-
MazeGeometry
public MazeGeometry(int pathWidth, int wallThickness, int wallHeight) Constructs a complete set of supported structural dimensions.All three settings are supplied together. A creation-request override replaces the corresponding preset dimensions as one geometry value.
- Parameters:
pathWidth- the corridor width in blockswallThickness- the wall thickness in blockswallHeight- the wall height excluding floor and roof- Throws:
IllegalArgumentException- if path width is outside 1..16, wall thickness is outside 1..8, or wall height is outside 2..64
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
pathWidth
-
wallThickness
public int wallThickness()Returns the value of thewallThicknessrecord component.- Returns:
- the value of the
wallThicknessrecord component
-
wallHeight
public int wallHeight()Returns the value of thewallHeightrecord component.- Returns:
- the value of the
wallHeightrecord component
-