java.lang.Object
ml.karmaconfigs.api.bukkit.region.corner.util.Corner
Direct Known Subclasses:
BottomCorner, TopCorner

public abstract class Corner extends Object
Region corner
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.bukkit.Location[]
    Get all the corners
    abstract org.bukkit.Location
    Get a corner
    abstract Cuboid
    Get the region that owns the corners
    static org.bukkit.Location
    modifyX​(org.bukkit.Location original, double x)
    Modify the X value of the location
    static org.bukkit.Location
    modifyZ​(org.bukkit.Location original, double z)
    Modify the Z value of the location

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Corner

      public Corner()
  • Method Details

    • getRegion

      public abstract Cuboid getRegion()
      Get the region that owns the corners
      Returns:
      the region
    • getCorner

      public abstract org.bukkit.Location getCorner(CornerType type)
      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 location
      x - 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 location
      z - the new Z value
      Returns:
      the new location with the new Z value