Change imports
This commit is contained in:
@@ -14,8 +14,8 @@ import type {
|
||||
TransformedInstance,
|
||||
Visual,
|
||||
VisualBlock,
|
||||
} from "bworld/client";
|
||||
import type { Face, FluidStack } from "bworld/shared";
|
||||
} from "cubi/client";
|
||||
import type { Face, FluidStack } from "cubi/shared";
|
||||
import {
|
||||
actual_speed,
|
||||
type Axis,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// how chain drives join into lines: each keeps where it is in its line (start, middle, end, or none on its own) and
|
||||
// which way the line goes, and changes them as chain drives beside it come and go, like ChainDriveBlock.updateShape.
|
||||
// no ctx, so placing and neighbor rules both use it
|
||||
import type { Face } from "bworld/shared";
|
||||
import type { Face } from "cubi/shared";
|
||||
import { type Axis, chain_axis, type ChainPart, face_axis, positive } from "./connections.ts";
|
||||
|
||||
// a chain drive's states that matter for its line
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// what turns, and what turns what: a kinetic block's axis and the ends of it with an axle, and how fast one block turns
|
||||
// the one next to it, like create's IRotate and RotationPropagator.getRotationSpeedModifier. no ctx, so placement
|
||||
// rules, the server and visuals all read blocks the same way
|
||||
import type { Face } from "bworld/shared";
|
||||
import type { Face } from "cubi/shared";
|
||||
|
||||
export type Axis = "x" | "y" | "z";
|
||||
export type Pos = readonly [number, number, number];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// what decides how fast generators turn: water flowing past a water wheel, and the creative motor's speed as it's
|
||||
// scrolled through. no ctx, so tests can call them directly
|
||||
import type { Position } from "bworld/shared";
|
||||
import type { Position } from "cubi/shared";
|
||||
import { AXES, type Axis, face_axis, FACE_OFFSETS, FACINGS, type Pos } from "./connections.ts";
|
||||
|
||||
// which way water around a wheel on axis at at turns it: 1 for counterclockwise seen from the axis's positive end, -1
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// stack of each, and BASIN_TANKS tanks with a fluid each. a kind of item or fluid only ever goes where there's already
|
||||
// some of it, so there's never two stacks or two tanks of one. no ctx, so the server keeps it and the client draws it
|
||||
// from the same shapes
|
||||
import type { FluidStack, FluidVariant, ItemStack } from "bworld/shared";
|
||||
import type { FluidStack, FluidVariant, ItemStack } from "cubi/shared";
|
||||
|
||||
export const BASIN_SLOTS = 9;
|
||||
export const BASIN_TANKS = 2;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// stacks out, each with a chance, and for the types that can, fluids out as { fluid, amount }. the shared script
|
||||
// registers each type, so a broken recipe stops the mod loading instead of a machine later. no ctx, tests give what it
|
||||
// needs
|
||||
import type { FluidStack, Id, RecipeType } from "bworld/shared";
|
||||
import type { FluidStack, Id, RecipeType } from "cubi/shared";
|
||||
|
||||
// how many ingredients, item results and fluid results a type takes at most, like getMaxInputCount,
|
||||
// getMaxOutputCount and getMaxFluidOutputCount
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// create's blocks that do something: so far what turns (create:kinetic), the generators that turn it (the hand crank,
|
||||
// the creative motor and the water wheel), the mechanical press and the basin
|
||||
import type { BlockRef, EntityRef, FluidStack, Id, ItemStack, ServerContext } from "bworld/server";
|
||||
import type { BlockRef, EntityRef, FluidStack, Id, ItemStack, ServerContext } from "cubi/server";
|
||||
import {
|
||||
actual_speed,
|
||||
along,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// how create's blocks are placed, on the server and on every client: kinetic blocks line up with the axles they're
|
||||
// placed against, and chain drives join into lines
|
||||
import type { BlockPlacement, Face, Id, SharedContext } from "bworld/shared";
|
||||
import type { BlockPlacement, Face, Id, SharedContext } from "cubi/shared";
|
||||
import { chain_update, type ChainState } from "./kinetics/chains.ts";
|
||||
import { COMPACTING, PRESSING, processing_type } from "./recipes/processing.ts";
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user