UNPKG

sparkscript

Version:
33 lines 1.29 kB
import { DFBlockAction, DFTarget, DFValueType } from "../core/types"; import { ActionBlock, ConditionalBlock } from "../core/components"; export declare class PlayerAction<Action extends DFBlockAction<"player_action">> extends ActionBlock<"player_action", Action> { /** * Do a player action. * @param action Action to perform. * @param args Arguments to pass. */ constructor(action: Action, target?: DFTarget, ...args: DFValueType[]); } export declare class PlayerEvent<Action extends DFBlockAction<"event">> extends ActionBlock<"event", Action> { /** * When a player does something. * @param event Event to listen for. */ constructor(event: Action); } export declare class PlayerCondition<Condition extends DFBlockAction<"if_player">> extends ConditionalBlock<"if_player", Condition> { /** * If a player did something. * @param condition Action of condition. * @param target Target of the condition. * @param args Arguments to pass. */ constructor(condition: Condition, target?: DFTarget, ...args: DFValueType[]); } declare const _default: { Action: typeof PlayerAction; Event: typeof PlayerEvent; Condition: typeof PlayerCondition; }; export default _default; //# sourceMappingURL=Player.d.ts.map