use of net.minecraft.world.phys.AABB in project Denizen-For-Bukkit by DenizenScript.
the class EntityHelperImpl method setBoundingBox.
@Override
public void setBoundingBox(Entity entity, BoundingBox boundingBox) {
Vector low = boundingBox.getLow();
Vector high = boundingBox.getHigh();
((CraftEntity) entity).getHandle().setBoundingBox(new AABB(low.getX(), low.getY(), low.getZ(), high.getX(), high.getY(), high.getZ()));
}
use of net.minecraft.world.phys.AABB in project Denizen-For-Bukkit by DenizenScript.
the class EntityHelperImpl method getBoundingBox.
@Override
public BoundingBox getBoundingBox(Entity entity) {
AABB boundingBox = ((CraftEntity) entity).getHandle().getBoundingBox();
Vector position = new Vector(boundingBox.minX, boundingBox.minY, boundingBox.minZ);
Vector size = new Vector(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ);
return new BoundingBox(position, size);
}
use of net.minecraft.world.phys.AABB in project Denizen-For-Bukkit by DenizenScript.
the class EntityHelperImpl method getBoundingBox.
@Override
public BoundingBox getBoundingBox(Entity entity) {
AABB boundingBox = ((CraftEntity) entity).getHandle().getBoundingBox();
Vector position = new Vector(boundingBox.minX, boundingBox.minY, boundingBox.minZ);
Vector size = new Vector(boundingBox.maxX, boundingBox.maxY, boundingBox.maxZ);
return new BoundingBox(position, size);
}
use of net.minecraft.world.phys.AABB in project Denizen-For-Bukkit by DenizenScript.
the class EntityHelperImpl method setBoundingBox.
@Override
public void setBoundingBox(Entity entity, BoundingBox boundingBox) {
Vector low = boundingBox.getLow();
Vector high = boundingBox.getHigh();
((CraftEntity) entity).getHandle().setBoundingBox(new AABB(low.getX(), low.getY(), low.getZ(), high.getX(), high.getY(), high.getZ()));
}
Aggregations