@tendrock/lib
Version:
A lib under the Tendrock system for Minecraft Bedrock Script API
19 lines (18 loc) • 717 B
TypeScript
export interface GameObjectType {
id: string;
}
export interface GameObject {
typeId: string;
}
export declare class IdUtils {
static getNamespace(identifier: string): string | undefined;
static getPath(identifier: string): string;
static isValidId(identifier: string): boolean;
static isVanillaId(identifier: string): boolean;
static getVanillaId(path: string): string;
static matchNamespace(identifier: string, namespace: string): boolean;
static hasNamespace(identifier: string): boolean;
private static isGameObjectType;
static getTypeId<T extends GameObjectType>(type: T | string): string;
static getTypeId<T extends GameObject>(gameObject: T | string): string;
}