Rename all "liquid" mentions to "fluid"

This commit is contained in:
2026-10-25 13:54:53 -03:00
parent bcca8fa4a5
commit 0cfa4d9b4a
58 changed files with 547 additions and 548 deletions
+5 -5
View File
@@ -301,9 +301,9 @@ export interface ServerWorld {
// the first block on the line from one point to another, like minecraft's Level.clip. it hits what entities bump
// into, so it goes through plants and other blocks without collision. undefined when nothing is in the way
raycast(from: Position, to: Position, options?: RaycastOptions): RaycastHit | undefined;
// which way the liquid at x y z flows, a vector 1 long, or 0 0 0 where it's still or there's none, like minecraft's
// which way the fluid at x y z flows, a vector 1 long, or 0 0 0 where it's still or there's none, like minecraft's
// FluidState.getFlow: toward lower cells of it beside it, and down where it falls. for what it pushes, like a wheel
liquid_flow(x: number, y: number, z: number): Position;
fluid_flow(x: number, y: number, z: number): Position;
// whether the chunk the column is in was ever generated, so reading its blocks generates nothing. for code that
// reaches far, like a walk along something long, which can stop at the rest: nobody has built anything there
is_loaded(x: number, z: number): boolean;
@@ -350,9 +350,9 @@ export interface BreakOptions {
}
export interface RaycastOptions {
// like minecraft's ClipContext.Fluid: "none" (the default) goes through liquids, "source_only" hits their sources
// and goes through where they flow, "any" hits all of them. a liquid is hit at its surface
liquids?: "none" | "source_only" | "any";
// like minecraft's ClipContext.Fluid: "none" (the default) goes through fluids, "source_only" hits their sources
// and goes through where they flow, "any" hits all of them. a fluid is hit at its surface
fluids?: "none" | "source_only" | "any";
}
export interface RaycastHit {