use of com.irtimaled.bbor.common.models.DimensionId in project BoundingBoxOutlineReloaded by irtimaled.
the class CustomBoxProvider method remove.
public static boolean remove(Coords minCoords, Coords maxCoords) {
DimensionId dimensionId = Player.getDimensionId();
int cacheKey = getHashKey(minCoords, maxCoords);
return getCache(dimensionId).remove(cacheKey) != null;
}
use of com.irtimaled.bbor.common.models.DimensionId 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);
}
use of com.irtimaled.bbor.common.models.DimensionId in project BoundingBoxOutlineReloaded by irtimaled.
the class CustomLineProvider method remove.
public static boolean remove(Point min, Point max) {
DimensionId dimensionId = Player.getDimensionId();
int cacheKey = getHashKey(min, max);
return getCache(dimensionId).remove(cacheKey) != null;
}
use of com.irtimaled.bbor.common.models.DimensionId 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);
}
use of com.irtimaled.bbor.common.models.DimensionId in project BoundingBoxOutlineReloaded by irtimaled.
the class SaveGameStructureLoader method loadSaveGame.
static void loadSaveGame(String fileName) {
Minecraft minecraft = Minecraft.getInstance();
SaveFormat saveLoader = minecraft.getSaveLoader();
saveHandler = saveLoader.getSaveLoader(fileName, null);
worldDirectory = saveLoader.func_215781_c().resolve(fileName).toFile();
for (DimensionId dimensionId : nbtStructureLoaders.keySet()) {
NBTStructureLoader dimensionProcessor = getNBTStructureLoader(dimensionId);
dimensionProcessor.configure(saveHandler, worldDirectory);
}
loadChunksAroundPlayer();
}
Aggregations