Class Corner
java.lang.Object
ml.karmaconfigs.api.bukkit.region.corner.util.Corner
- Direct Known Subclasses:
BottomCorner,TopCorner
Region corner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.bukkit.Location[]corners()Get all the cornersabstract org.bukkit.LocationgetCorner(CornerType type)Get a cornerabstract CuboidGet the region that owns the cornersstatic org.bukkit.LocationmodifyX(org.bukkit.Location original, double x)Modify the X value of the locationstatic org.bukkit.LocationmodifyZ(org.bukkit.Location original, double z)Modify the Z value of the location
-
Constructor Details
-
Corner
public Corner()
-
-
Method Details
-
getRegion
Get the region that owns the corners- Returns:
- the region
-
getCorner
Get a corner- Parameters:
type- the corner type- Returns:
- the corner
-
corners
public abstract org.bukkit.Location[] corners()Get all the corners- Returns:
- all the corners
-
modifyX
public static org.bukkit.Location modifyX(org.bukkit.Location original, double x)Modify the X value of the location- Parameters:
original- the locationx- the new X value- Returns:
- the new location with the new X value
-
modifyZ
public static org.bukkit.Location modifyZ(org.bukkit.Location original, double z)Modify the Z value of the location- Parameters:
original- the locationz- the new Z value- Returns:
- the new location with the new Z value
-