Fluid handler

This commit is contained in:
2026-10-31 16:54:24 -03:00
parent 23d02c5229
commit 407ed77385
20 changed files with 602 additions and 127 deletions
+6
View File
@@ -24,6 +24,12 @@ export interface FluidVariant {
readonly data?: unknown;
}
// an amount of a fluid in mB, like neoforge's FluidStack: what's in a tank, or what's poured from one into another
export interface FluidStack {
fluid: FluidVariant;
amount: number;
}
// 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