Package net.blueva.arcade.api.arena
Interface FloorRegion<L>
- Type Parameters:
L- the location type (platform-specific)
public interface FloorRegion<L>
Represents a floor region in an arena defined by minimum and maximum boundary points.
A floor region is a rectangular area that can be used to define playable zones, spawn areas, or other important game boundaries. The region is defined by two corner points (min and max) that form a bounding box.
-
Method Summary
-
Method Details
-
getMin
L getMin()Gets the minimum boundary point of this region.This typically represents the corner with the smallest X, Y, Z coordinates.
- Returns:
- the minimum boundary location
-
getMax
L getMax()Gets the maximum boundary point of this region.This typically represents the corner with the largest X, Y, Z coordinates.
- Returns:
- the maximum boundary location
-
contains
Checks if a given location is within this floor region.- Parameters:
loc- the location to check- Returns:
- true if the location is within the region boundaries, false otherwise
-