Search in sources :

Example 6 with BoundingBox

use of net.aufdemrand.denizen.nms.util.BoundingBox in project Denizen-For-Bukkit by DenizenScript.

the class EntityHelper_v1_10_R1 method getBoundingBox.

@Override
public BoundingBox getBoundingBox(Entity entity) {
    AxisAlignedBB boundingBox = ((CraftEntity) entity).getHandle().getBoundingBox();
    Vector position = new Vector(boundingBox.a, boundingBox.b, boundingBox.c);
    Vector size = new Vector(boundingBox.d, boundingBox.e, boundingBox.f);
    return new BoundingBox(position, size);
}
Also used : BoundingBox(net.aufdemrand.denizen.nms.util.BoundingBox) Vector(org.bukkit.util.Vector)

Aggregations

BoundingBox (net.aufdemrand.denizen.nms.util.BoundingBox)6 Vector (org.bukkit.util.Vector)4 net.aufdemrand.denizen.objects.dLocation (net.aufdemrand.denizen.objects.dLocation)2 net.aufdemrand.denizencore.objects.dList (net.aufdemrand.denizencore.objects.dList)2 Element (net.aufdemrand.denizencore.objects.Element)1