Tooltip api
This commit is contained in:
@@ -157,8 +157,9 @@ export interface SharedContext {
|
||||
name(id: Id): string;
|
||||
// the components its json lists and their params, a copy
|
||||
components(id: Id): Record<Id, unknown>;
|
||||
// what one sells for, from its "base_sell_value", or undefined if it can't be sold
|
||||
sell_value(id: Id): number | undefined;
|
||||
// what one of it sells for with this data, or undefined if it can't be sold: the item's "base_sell_value", and a
|
||||
// full fluid container's fluid on top, like the server's ctx.items.sell_value
|
||||
sell_value(id: Id, data?: unknown): number | undefined;
|
||||
};
|
||||
// every fluid any mod defines, like the server's and clients' ctx.fluids, without what rules decide
|
||||
readonly fluids: Pick<FluidApi, "exists" | "same"> & {
|
||||
|
||||
Reference in New Issue
Block a user