Class Cuboid
java.lang.Object
com.andrei1058.bedwars.api.region.Cuboid
- All Implemented Interfaces:
Region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getMaxY()
int
getMinY()
boolean
isInRegion
(org.bukkit.Location l) Check if location is in region.boolean
Check if is a protected region.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
Check if location is in region.- Specified by:
isInRegion
in interfaceRegion
-
isProtected
public boolean isProtected()Description copied from interface:Region
Check if is a protected region.- Specified by:
isProtected
in interfaceRegion
-
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()
-