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
+2
View File
@@ -26,6 +26,8 @@ export interface FluidVariant {
// ctx.fluids in server and client scripts: every fluid any mod defines, the same on the server and every client
export interface FluidApi {
// every fluid's id, in load order, like ctx.items.ids. each without data, which a fluid like juice has many of
ids(): Id[];
exists(id: Id): boolean;
// what players see, from the fluid's rules for its data, or else its json
name(fluid: FluidVariant): string;