Change imports

This commit is contained in:
2026-11-04 21:51:26 -03:00
parent 98fa45ebd1
commit ba4b2a8798
270 changed files with 994 additions and 994 deletions
+7 -7
View File
@@ -6,13 +6,13 @@
// entities, visuals and changing blocks. it's made of what the loaded mods' worldgen data makes the ground of, and other
// blocks picked by what they are (a cutout plant, a translucent cube), not by their ids
import { Alea } from "@paulaboks/rng";
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "$/common/constants.ts";
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
import { DEFAULT_MODEL } from "$/common/block_models.ts";
import { OctaveNoise2D, OctaveNoise3D, smoothstep } from "$/common/worldgen/noise.ts";
import { can_stand_on, default_block_value } from "$/common/utils.ts";
import type { Biome } from "$/common/worldgen/biomes.ts";
import type { NoiseSettingsJson } from "$/common/worldgen/data.ts";
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "@/common/constants.ts";
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
import { DEFAULT_MODEL } from "@/common/block_models.ts";
import { OctaveNoise2D, OctaveNoise3D, smoothstep } from "@/common/worldgen/noise.ts";
import { can_stand_on, default_block_value } from "@/common/utils.ts";
import type { Biome } from "@/common/worldgen/biomes.ts";
import type { NoiseSettingsJson } from "@/common/worldgen/data.ts";
const SEED = "benchmark";
// chunks go from -LEVEL_RADIUS to LEVEL_RADIUS - 1 each way. the outermost ring is only there so the ones inside it
+20 -20
View File
@@ -7,17 +7,17 @@
// so what's around the player doesn't change the numbers. each scene is timed with frames paced by the display, then
// with frames back to back (see render_debug.uncapped), after a warmup. meshing the whole level is timed too, the
// first time and again. the report says what the computer and the browser are, see report.ts
import { Camera } from "$/client/camera.ts";
import { ClientLevel } from "$/client/level/client_level.ts";
import type { GameRenderer } from "$/client/rendering/game_renderer.ts";
import { block_visuals } from "$/client/rendering/visuals.ts";
import { draw_item } from "$/client/rendering/render_utils.ts";
import { InputManager } from "$/client/input_manager.ts";
import { type FrameSample, profiler } from "$/client/profiler.ts";
import { RemotePlayer } from "$/client/entity/remote_player.ts";
import { RemoteEntity } from "$/client/entity/remote_entity.ts";
import { ItemEntity } from "$/client/entity/item_entity.ts";
import { tick_texture_animations } from "$/client/texture_animations.ts";
import { Camera } from "@/client/camera.ts";
import { ClientLevel } from "@/client/level/client_level.ts";
import type { GameRenderer } from "@/client/rendering/game_renderer.ts";
import { block_visuals } from "@/client/rendering/visuals.ts";
import { draw_item } from "@/client/rendering/render_utils.ts";
import { InputManager } from "@/client/input_manager.ts";
import { type FrameSample, profiler } from "@/client/profiler.ts";
import { RemotePlayer } from "@/client/entity/remote_player.ts";
import { RemoteEntity } from "@/client/entity/remote_entity.ts";
import { ItemEntity } from "@/client/entity/item_entity.ts";
import { tick_texture_animations } from "@/client/texture_animations.ts";
import {
adapter_info,
device,
@@ -26,15 +26,15 @@ import {
render_debug,
render_stats,
set_canvas_size,
} from "$/client/renderer/mod.ts";
import { ID_MASK, SLOT_SIZE, STATE_SHIFT } from "$/common/constants.ts";
import { AIR_ID } from "$/common/protocol.ts";
import { TIMES_OF_DAY } from "$/common/time.ts";
import { type BlockRegistry, EverythingRegistry, RENDER_LAYERS } from "$/common/everything_registry.ts";
import type { EntityJson } from "$/common/mod_data.ts";
import type { ModListing } from "$/common/mod_loader.ts";
import { ItemStack } from "$/common/inventory.ts";
import { display_name } from "$/common/utils.ts";
} from "@/client/renderer/mod.ts";
import { ID_MASK, SLOT_SIZE, STATE_SHIFT } from "@/common/constants.ts";
import { AIR_ID } from "@/common/protocol.ts";
import { TIMES_OF_DAY } from "@/common/time.ts";
import { type BlockRegistry, EverythingRegistry, RENDER_LAYERS } from "@/common/everything_registry.ts";
import type { EntityJson } from "@/common/mod_data.ts";
import type { ModListing } from "@/common/mod_loader.ts";
import { ItemStack } from "@/common/inventory.ts";
import { display_name } from "@/common/utils.ts";
import {
bench_blocks,
type BenchBlocks,