Package ch.njol.skript.util
Class AABB
java.lang.Object
ch.njol.skript.util.AABB
- All Implemented Interfaces:
Iterable<org.bukkit.block.Block>
AABB = Axis-Aligned Bounding Box
-
Constructor Summary
ConstructorDescriptionAABB(org.bukkit.block.Block b1, org.bukkit.block.Block b2)
AABB(org.bukkit.Chunk c)
AABB(org.bukkit.Location center, double rX, double rY, double rZ)
AABB(org.bukkit.Location l1, org.bukkit.Location l2)
AABB(org.bukkit.World w, org.bukkit.util.Vector v1, org.bukkit.util.Vector v2)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains(org.bukkit.block.Block b)
boolean
contains(org.bukkit.Location l)
boolean
org.bukkit.util.Vector
org.bukkit.World
getWorld()
int
hashCode()
Iterator<org.bukkit.block.Block>
iterator()
Returns an iterator which iterates over all blocks that are in this AABBMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AABB
public AABB(org.bukkit.Location l1, org.bukkit.Location l2) -
AABB
public AABB(org.bukkit.block.Block b1, org.bukkit.block.Block b2) -
AABB
public AABB(org.bukkit.Location center, double rX, double rY, double rZ) -
AABB
public AABB(org.bukkit.World w, org.bukkit.util.Vector v1, org.bukkit.util.Vector v2) -
AABB
public AABB(org.bukkit.Chunk c)
-
-
Method Details
-
contains
public boolean contains(org.bukkit.Location l) -
contains
public boolean contains(org.bukkit.block.Block b) -
getDimensions
public org.bukkit.util.Vector getDimensions() -
getWorld
public org.bukkit.World getWorld() -
iterator
Returns an iterator which iterates over all blocks that are in this AABB -
hashCode
public int hashCode() -
equals
-