bedrock-development
Version:
APIs for creating and editing files related to Minecraft Bedrock development.
69 lines (68 loc) • 2.21 kB
TypeScript
import { NameData } from "../../utils.js";
import { MinecraftDataType } from "../minecraft.js";
import { FormatVersion, MolangTripleArray } from "../shared_types.js";
import { IClientACParticleEffects, IClientACSoundEffects } from "./animation_controller";
export type ClientAnimationName = `animation.${string}`;
export interface IClientAnimation {
format_version: FormatVersion;
animations: {
[key: ClientAnimationName]: IClientAnimationAnim;
};
}
export interface IClientAnimationAnim {
animation_length?: number;
anim_time_update?: string;
blend_weight?: string;
loop?: boolean | "hold_on_last_frame";
loop_delay?: string;
start_delay?: string;
override_previous_animation?: boolean;
timeline?: {
[key: `${number}`]: string[] | string;
};
particle_effects?: {
[key: `${number}`]: IClientACParticleEffects;
};
sound_effects?: {
[key: `${number}`]: IClientACSoundEffects;
};
bones?: {
[key: string]: IClientAnimationBone;
};
}
export interface IClientAnimationBone {
rotation?: MolangTripleArray | {
[key: `${number}`]: MolangTripleArray | {
pre?: MolangTripleArray;
post?: MolangTripleArray;
lerp_mode?: string;
};
};
position?: MolangTripleArray | {
[key: `${number}`]: MolangTripleArray | {
pre?: MolangTripleArray;
post?: MolangTripleArray;
lerp_mode?: string;
};
};
scale?: MolangTripleArray | {
[key: `${number}`]: MolangTripleArray | {
pre?: MolangTripleArray;
post?: MolangTripleArray;
lerp_mode?: string;
};
};
relative_to?: {
rotation: string;
};
}
export declare class ClientAnimation extends MinecraftDataType implements IClientAnimation {
format_version: FormatVersion;
animations: {
[key: ClientAnimationName]: IClientAnimationAnim;
};
static get DirectoryPath(): string;
constructor(filepath: string, template: IClientAnimation);
static createFilePath(nameData: NameData): string;
static createFromTemplate(nameData: NameData): ClientAnimation;
}