Implement tags !
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// what client scripts get, see docs/modding/gui/index.md
|
||||
import type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
|
||||
import type { Id, ItemStack, KeyCode, ModInfo, Position, TagApi } from "./shared.ts";
|
||||
|
||||
export type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
|
||||
export type { Id, ItemStack, KeyCode, ModInfo, Position, TagApi, TagRegistry } from "./shared.ts";
|
||||
|
||||
export interface ClientContext {
|
||||
mod: ModInfo;
|
||||
@@ -30,6 +30,8 @@ export interface ClientContext {
|
||||
// deno-lint-ignore no-explicit-any
|
||||
list(type?: Id): any[];
|
||||
};
|
||||
// every mod's block, item and entity tags
|
||||
tags: TagApi;
|
||||
log(...args: unknown[]): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user