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 TypeMethodDescriptionint
getMaxY()
int
getMinY()
boolean
isInRegion
(org.bukkit.Location l) Checks if a given location is within the region.boolean
Checks if the region is protected.void
setMaxY
(int maxY) void
setMinY
(int minY) void
setProtect
(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:Region
Checks if a given location is within the region.- Specified by:
isInRegion
in interfaceRegion
- Parameters:
l
- The location to check.- Returns:
true
if the location is within the region,false
otherwise.
-
isProtected
public boolean isProtected()Description copied from interface:Region
Checks if the region is protected.- Specified by:
isProtected
in interfaceRegion
- Returns:
true
if the region is protected,false
otherwise.
-
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()
-