UNPKG

@levimc-lse/interface-api

Version:

API for the logic tree development framework that supports cross-plugin UI queues at runtime in Minecraft Legacy Script Engine.

21 lines 1.59 kB
import { FormNode } from "./FormNode"; import { LevelType } from "../LevelType"; export declare class CustomFormNode implements FormNode { private father; private readonly preload?; private readonly title; private readonly controls; private readonly multiFactorTriggers; constructor(title: string, preload?: (self: CustomFormNode) => Promise<void>); setFather(father: FormNode): void; addLabel(text: string): CustomFormNode; addInput(title: string, placeholder?: string, defaultValue?: string, callback?: (father: FormNode, playerIdentifier: string, value: undefined | string | number | boolean) => Promise<void>): CustomFormNode; addSwitch(title: string, defaultValue?: boolean, callback?: (father: FormNode, playerIdentifier: string, value: undefined | string | number | boolean) => Promise<void>): CustomFormNode; addDropdown(title: string, items: Array<string>, defaultValue?: number, callback?: (father: FormNode, playerIdentifier: string, value: undefined | string | number | boolean) => Promise<void>): CustomFormNode; addSlider(title: string, min: number, max: number, step: number, defaultValue?: number, callback?: (father: FormNode, playerIdentifier: string, value: undefined | string | number | boolean) => Promise<void>): CustomFormNode; addMultiFactorTrigger(trigger: Array<any>, callback: (father: FormNode, playerIdentifier: string) => Promise<void>): CustomFormNode; render(playerIdentifier: string): Promise<void>; getType(): LevelType; getOccupiedTicks(): number; } //# sourceMappingURL=CustomFormNode.d.ts.map