Package com.tomkeuper.bedwars.api.region
Class Cuboid
java.lang.Object
com.tomkeuper.bedwars.api.region.Cuboid
- All Implemented Interfaces:
Region
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMaxY()intgetMinY()booleanisInRegion(org.bukkit.Location l) Checks if a given location is within the region.booleanChecks if the region is protected.voidsetMaxY(int maxY) voidsetMinY(int minY) voidsetProtect(boolean protect)
-
Constructor Details
-
Cuboid
public Cuboid(org.bukkit.Location loc, int radius, boolean protect)
-
-
Method Details
-
isInRegion
public boolean isInRegion(org.bukkit.Location l) Description copied from interface:RegionChecks if a given location is within the region.- Specified by:
isInRegionin interfaceRegion- Parameters:
l- The location to check.- Returns:
trueif the location is within the region,falseotherwise.
-
isProtected
public boolean isProtected()Description copied from interface:RegionChecks if the region is protected.- Specified by:
isProtectedin interfaceRegion- Returns:
trueif the region is protected,falseotherwise.
-
setMaxY
public void setMaxY(int maxY) -
setMinY
public void setMinY(int minY) -
setProtect
public void setProtect(boolean protect) -
getMaxY
public int getMaxY() -
getMinY
public int getMinY()
-