Search in sources :

Example 1 with BoundingBoxSphere

use of com.irtimaled.bbor.client.models.BoundingBoxSphere in project BoundingBoxOutlineReloaded by irtimaled.

the class CustomSphereProvider method add.

public static void add(Point center, double radius) {
    DimensionId dimensionId = Player.getDimensionId();
    int cacheKey = center.hashCode();
    BoundingBoxSphere sphere = new BoundingBoxSphere(center, radius, BoundingBoxType.Custom);
    getCache(dimensionId).put(cacheKey, sphere);
}
Also used : DimensionId(com.irtimaled.bbor.common.models.DimensionId) Point(com.irtimaled.bbor.client.models.Point) BoundingBoxSphere(com.irtimaled.bbor.client.models.BoundingBoxSphere)

Aggregations

BoundingBoxSphere (com.irtimaled.bbor.client.models.BoundingBoxSphere)1 Point (com.irtimaled.bbor.client.models.Point)1 DimensionId (com.irtimaled.bbor.common.models.DimensionId)1