Package com.tomkeuper.bedwars.api.region
Interface Region
- All Known Implementing Classes:
Cuboid
public interface Region
The Region interface represents a region in a game world.
Implementations of this interface provide methods for checking if a location is within the region
and determining if the region is protected.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisInRegion(org.bukkit.Location location) Checks if a given location is within the region.booleanChecks if the region is protected.
-
Method Details
-
isInRegion
boolean isInRegion(org.bukkit.Location location) Checks if a given location is within the region.- Parameters:
location- The location to check.- Returns:
trueif the location is within the region,falseotherwise.
-
isProtected
boolean isProtected()Checks if the region is protected.- Returns:
trueif the region is protected,falseotherwise.
-