mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
18 lines (17 loc) • 522 B
TypeScript
import { int } from 'mdk-nbt';
import { File, ContextAbstract } from "../../../mdk-core/src";
export declare class Trigger extends ContextAbstract {
constructor(context: File);
/**
* 将新值追加到当前目标值上。
* @param critera 目标
* @param value 值
*/
add(critera: string, value: int): this;
/**
* 将目标的当前值重设为新值。
* @param critera 目标
* @param value 值
*/
set(critera: string, value: int): this;
}