Search in sources :

Example 1 with BoundingBoxLine

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

the class CustomLineProvider method add.

public static void add(Point minPoint, Point maxPoint, Double width) {
    DimensionId dimensionId = Player.getDimensionId();
    int cacheKey = getHashKey(minPoint, maxPoint);
    BoundingBoxLine line = BoundingBoxLine.from(minPoint, maxPoint, width, BoundingBoxType.Custom);
    getCache(dimensionId).put(cacheKey, line);
}
Also used : BoundingBoxLine(com.irtimaled.bbor.client.models.BoundingBoxLine) DimensionId(com.irtimaled.bbor.common.models.DimensionId) Point(com.irtimaled.bbor.client.models.Point)

Aggregations

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