Watering can lore
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user