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);
}
Aggregations