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
+1 -1
View File
@@ -4,7 +4,7 @@
// status effects on living entities, like minecraft's MobEffect and MobEffectInstance. an effect is a type plus
// how strong it is and for how long. a weaker one that lasts longer waits hidden under the stronger one, and takes
// over when that runs out
import type { EffectCategory } from "$/common/mod_data.ts";
import type { EffectCategory } from "@/common/mod_data.ts";
import type { AttributeType, ModifierOperation } from "./attributes.ts";
import { finite } from "./entity.ts";
import type { LivingEntity } from "./living_entity.ts";
+7 -7
View File
@@ -7,13 +7,13 @@
//
// like minecraft's, a kind of entity inherits from one class (Entity, LivingEntity, Mob, or another kind) and can
// implement any number of interfaces
import { TICKS_PER_SECOND } from "$/common/constants.ts";
import type { BlockRegistry } from "$/common/everything_registry.ts";
import type { ItemStack } from "$/common/inventory.ts";
import type { Shape } from "$/common/block_shapes.ts";
import type { Season } from "$/common/worldgen/biomes.ts";
import { type Collisions, type FluidInCell, physics } from "$/common/physics.ts";
import type { EntityData, EntityEvent, EntityInfo } from "$/common/protocol.ts";
import { TICKS_PER_SECOND } from "@/common/constants.ts";
import type { BlockRegistry } from "@/common/everything_registry.ts";
import type { ItemStack } from "@/common/inventory.ts";
import type { Shape } from "@/common/block_shapes.ts";
import type { Season } from "@/common/worldgen/biomes.ts";
import { type Collisions, type FluidInCell, physics } from "@/common/physics.ts";
import type { EntityData, EntityEvent, EntityInfo } from "@/common/protocol.ts";
import type { ServerPlayer } from "../player.ts";
// below this, entities have fallen out of the world
+6 -6
View File
@@ -4,12 +4,12 @@
// every entity in the world, and what each player's client knows about them. like minecraft's entity lookup plus
// its ChunkMap's entity tracking: a player's client hears about the entities within their view distance, gets told
// when those move or change, and forgets them when they leave it
import { CHUNK_SIZE } from "$/common/constants.ts";
import { is_within_view } from "$/common/chunk_streaming.ts";
import { fluid_block, fluid_in_cell } from "$/common/utils.ts";
import { biome_season } from "$/common/worldgen/biomes.ts";
import type { ItemStack } from "$/common/inventory.ts";
import type { EntityEvent, EntityInfo, ServerMessage } from "$/common/protocol.ts";
import { CHUNK_SIZE } from "@/common/constants.ts";
import { is_within_view } from "@/common/chunk_streaming.ts";
import { fluid_block, fluid_in_cell } from "@/common/utils.ts";
import { biome_season } from "@/common/worldgen/biomes.ts";
import type { ItemStack } from "@/common/inventory.ts";
import type { EntityEvent, EntityInfo, ServerMessage } from "@/common/protocol.ts";
import type { ServerPlayer } from "../player.ts";
import type { ServerWorld } from "../world.ts";
import type { DamageSource, Entity, EntityLevel, SavedEntity } from "./entity.ts";
+4 -4
View File
@@ -1,10 +1,10 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { type ItemData, ItemStack, same_stack } from "$/common/inventory.ts";
import type { EntityInfo } from "$/common/protocol.ts";
import { TICK_DELTA } from "$/common/constants.ts";
import { physics } from "$/common/physics.ts";
import { type ItemData, ItemStack, same_stack } from "@/common/inventory.ts";
import type { EntityInfo } from "@/common/protocol.ts";
import { TICK_DELTA } from "@/common/constants.ts";
import { physics } from "@/common/physics.ts";
import { type Attacker, type DamageSource, Entity, finite, type SavedEntity } from "./entity.ts";
export const ITEM_ENTITY_TYPE = "cubi:item";
+3 -3
View File
@@ -4,9 +4,9 @@
// entities that live: health, attributes, status effects, equipment, breathing and dying, like minecraft's
// LivingEntity. they walk with minecraft's physics, driven by forward, strafe and jumping (see travel), which is what
// a mob's AI or anything else moving them sets
import { TICKS_PER_SECOND } from "$/common/constants.ts";
import { type ItemData, ItemStack } from "$/common/inventory.ts";
import type { EntityData } from "$/common/protocol.ts";
import { TICKS_PER_SECOND } from "@/common/constants.ts";
import { type ItemData, ItemStack } from "@/common/inventory.ts";
import type { EntityData } from "@/common/protocol.ts";
import { AttributeMap, ATTRIBUTES, type AttributeType } from "./attributes.ts";
import { EffectInstance, type SavedEffect } from "./effects.ts";
import { DAMAGE, type DamageSource, Entity, finite, type SavedEntity } from "./entity.ts";
+3 -3
View File
@@ -8,9 +8,9 @@ import { type DamageSource, Entity, finite } from "./entity.ts";
import { GoalSelector } from "./goals.ts";
import { ItemEntity } from "./item_entity.ts";
import { EQUIPMENT_SLOTS, type EquipmentSlot, LivingEntity, type SavedLivingEntity } from "./living_entity.ts";
import type { EntityData } from "$/common/protocol.ts";
import type { ItemStack } from "$/common/inventory.ts";
import { wrap_angle } from "$/common/utils.ts";
import type { EntityData } from "@/common/protocol.ts";
import type { ItemStack } from "@/common/inventory.ts";
import { wrap_angle } from "@/common/utils.ts";
// minecraft's despawning distances: gone at once past the first, maybe after a while past the second
const DESPAWN_DISTANCE = 128;
+1 -1
View File
@@ -4,7 +4,7 @@
// the kinds of entity mods define in entities/<name>.json (see EntityJson): animals that wander around, panic when hurt
// and look at players now and then, like minecraft's simpler animals, monsters that go after players, and scripted
// ones that stay where scripts put them
import type { EntityJson } from "$/common/mod_data.ts";
import type { EntityJson } from "@/common/mod_data.ts";
import { ATTRIBUTES, type AttributeType } from "./attributes.ts";
import { Entity } from "./entity.ts";
import type { EntityFactory } from "./entity_types.ts";