sparkscript
Version:
DiamondFire for Javascript.
32 lines • 1.31 kB
TypeScript
import { DFBlockAction, DFTarget, DFValueType } from "../core/types";
import { ActionBlock, ConditionalBlock } from "../core/components";
export declare class EntityAction<Action extends DFBlockAction<"entity_action">> extends ActionBlock<"entity_action", Action> {
/**
* Used to do something related to an entity or multiple entities.
* @param action Action to perform.
* @param args Arguments to pass.
*/
constructor(action: Action, target?: DFTarget, ...args: DFValueType[]);
}
export declare class EntityEvent<Action extends DFBlockAction<"entity_event">> extends ActionBlock<"entity_event", Action> {
/**
* When an entity does something.
* @param event Event to listen for.
*/
constructor(event: Action);
}
export declare class EntityCondition<Condition extends DFBlockAction<"if_entity">> extends ConditionalBlock<"if_entity", Condition> {
/**
* If an entity 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 EntityAction;
Event: typeof EntityEvent;
};
export default _default;
//# sourceMappingURL=Entity.d.ts.map