More fluid apis

This commit is contained in:
2026-10-28 13:04:24 -03:00
parent 1539cf6933
commit 3cc33ea10c
7 changed files with 36 additions and 4 deletions
+1
View File
@@ -47,6 +47,7 @@ export class FluidRules {
// ctx.fluids for server and client scripts
api(): FluidApi {
return {
ids: () => EverythingRegistry.entries("fluids").map(([id]) => id),
exists: (id) => EverythingRegistry.get("fluids", id) !== undefined,
name: (fluid) => this.name(fluid),
color: (fluid) => this.color(fluid),