UNPKG

asajs

Version:

Make your Minecraft JsonUI with ScriptingAPI

33 lines (32 loc) 1.83 kB
import { Identifier } from "../types/components/Identifier"; import { ExtendInterface } from "../types/components/UIInterface"; import { Types } from "../types/enums/Types"; import { PropertiesType } from "../types/objects/elements/PropertiesType"; import { OverrideInterface, ModificationInterface, ExtractUIType } from "../types/objects/Modify"; import { Properties } from "../types/objects/properties/Properties"; import { Class } from "./Class"; import { UI } from "./UI"; export declare class Modify<T extends Types = Types.Any, K extends string = string> extends Class { private properties; private controls?; private bindings?; private button_mappings?; private variables?; private anims?; private isValidPath; name: string; namespace: string; private modifyBindings?; private removeModifyBindings?; private modifyControls; override: OverrideInterface; modify: ModificationInterface<K>; private constructor(); getPath(): string; getElement(): string; extend(identifier?: ExtendInterface, properties?: PropertiesType[ExtractUIType<typeof this>]): UI<this extends UI<infer U extends Types> ? U : this extends Modify<infer U_1 extends Types, string> ? U_1 : this extends string ? never : this extends Identifier ? never : never>; getUI(): any; addChild<T extends string | UI<any> | Modify<any, any>>(element: T, properties?: PropertiesType[ExtractUIType<typeof element>], elementName?: string): this; static register<T extends Types = Types.Any, K extends string = string>(filePath: string, elementPath: string, properties?: Properties): Modify<T, K>; static registerWithNamespace<T extends Types = Types.Any, K extends string = string>(filePath: string, elementPath: string, namespace: string, properties?: Properties): Modify<T, K>; }