Search in sources :

Example 1 with BoundingBoxCuboid

use of com.irtimaled.bbor.common.models.BoundingBoxCuboid in project BoundingBoxOutlineReloaded by irtimaled.

the class CustomBoxProvider method add.

public static void add(Coords minCoords, Coords maxCoords) {
    DimensionId dimensionId = Player.getDimensionId();
    int cacheKey = getHashKey(minCoords, maxCoords);
    BoundingBoxCuboid cuboid = BoundingBoxCuboid.from(minCoords, maxCoords, BoundingBoxType.Custom);
    getCache(dimensionId).put(cacheKey, cuboid);
}
Also used : BoundingBoxCuboid(com.irtimaled.bbor.common.models.BoundingBoxCuboid) DimensionId(com.irtimaled.bbor.common.models.DimensionId)

Aggregations

BoundingBoxCuboid (com.irtimaled.bbor.common.models.BoundingBoxCuboid)1 DimensionId (com.irtimaled.bbor.common.models.DimensionId)1