Watering can lore

This commit is contained in:
2026-03-07 22:01:11 -03:00
parent 897a9e68c7
commit a0886f8f24
11 changed files with 197 additions and 10 deletions
+7
View File
@@ -1,5 +1,6 @@
import { ClientWorld } from "../client/client_world.ts";
import { Tile } from "../client/components/dimension.ts";
import { ItemStack } from "../client/components/inventory.ts";
export class EverythingRegistry {
static #registries = new Map<string, Map<string, unknown>>();
@@ -27,3 +28,9 @@ export interface TileRegistry<T = unknown | undefined> {
on_tick?(world: ClientWorld, tile: Tile<T>, tick_delta: number): void;
on_second?(world: ClientWorld, tile: Tile<T>, second_delta: number): void;
}
export interface ItemRegistry<T = unknown | undefined> {
texture_id: string | ((item: ItemStack<T>) => string);
on_create?(item: ItemStack<T>): void;
get_lore?(item: ItemStack<T>): string;
}