Record Class RegionSelection
java.lang.Object
java.lang.Record
dev.despical.mazeengine.integration.RegionSelection
Carries a resolved WorldEdit cuboid selection and its loaded Bukkit world.
WorldEditBridge translates the selected minimum and maximum coordinates into inclusive block Bounds. The command layer uses those bounds to compute the largest fitting maze grid and center its structure within the selected area.
Unlike public API location values, this internal result retains a live World reference. It belongs to server-thread selection resolution and is not a portable persistence value or a guarantee that a later operation still fits the current world border and configured limits.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionSelection(org.bukkit.World world, Bounds bounds) Creates an instance of aRegionSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.org.bukkit.Worldworld()Returns the value of theworldrecord component.
-
Constructor Details
-
RegionSelection
Creates an instance of aRegionSelectionrecord class.- Parameters:
world- the value for theworldrecord componentbounds- the value for theboundsrecord component
-
-
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 withObjects::equals(Object,Object). -
world
public org.bukkit.World world()Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-