mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
13 lines (12 loc) • 771 B
TypeScript
import { File, ContextAbstract } from "../../../../mdk-core/src";
import { Selector } from "../../../../mdk-core/src";
import { AttributeModifier } from "../../function/attribute";
export declare class Attribute extends ContextAbstract {
constructor(context: File);
get(target: Selector, attribute: string, scale?: number): this;
getBase(target: Selector, attribute: string, scale?: number): this;
setBase(target: Selector, attribute: string, value: number): this;
add(target: Selector, attribute: string, uuid: string, name: string, value: string, type?: AttributeModifier): this;
remove(target: Selector, attribute: string, uuid: string): this;
getValue(target: Selector, attribute: string, uuid: string, scale: number): this;
}