Package redempt.redlib.region
Class Overlappable
java.lang.Object
redempt.redlib.region.Region
redempt.redlib.region.Overlappable
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CuboidRegion
,MultiRegion
Represents a Region which supports the overlap and intersect operations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Region
getIntersection
(Overlappable other) Gets the intersection of this Overlappable with anotherabstract boolean
overlaps
(Overlappable other) Checks whether this Overlappable overlaps another OverlappableMethods inherited from class redempt.redlib.region.Region
clone, contains, contains, disableEvents, enableEvents, equals, expand, expand, forEachBlock, getBlockDimensions, getBlockVolume, getCenter, getChunks, getCorners, getDimensions, getEnd, getEntities, getEntities, getLoadedChunks, getPlayers, getStart, getVolume, getWorld, hashCode, measure, measureBlocks, move, move, protect, protect, rotate, setWorld, stream, toCuboid
-
Constructor Details
-
Overlappable
public Overlappable()
-
-
Method Details
-
overlaps
Checks whether this Overlappable overlaps another Overlappable- Parameters:
other
- The Overlappable Region to check- Returns:
- Whether this Overlappable overlaps the given Overlappable
-
getIntersection
Gets the intersection of this Overlappable with another- Parameters:
other
- The Overlappable Region to check- Returns:
- The intersection of this Region with the provided Overlappable Region
-