More fluid apis
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user