bc-minecraft-bedrock-project
Version:
The typescript library responsible for reading/parsing minecraft bedrock data
55 lines (54 loc) • 1.3 kB
TypeScript
import { FormatVersion } from "../types/format-version";
export interface RenderControllers extends Readonly<FormatVersion> {
format_version: string;
render_controllers: {
[]: RenderController;
};
}
export declare namespace RenderControllers {
function is(value: any): value is RenderControllers;
}
/**
* Represents a render controller.
*/
export interface RenderController {
/**
* Arrays used for rendering.
*/
arrays?: {
/**
* Array specification for materials.
*/
materials?: ArraySpec;
/**
* Array specification for geometries.
*/
geometries?: ArraySpec;
/**
* Array specification for textures.
*/
textures?: ArraySpec;
};
/**
* The geometry used for rendering.
*/
geometry?: string;
/**
* The materials used for rendering.
*/
materials?: MaterialSpec[];
/**
* The textures used for rendering.
*/
textures?: string[];
/**
* The visibility of different parts.
*/
part_visibility: Record<string, boolean | string>[];
}
export interface MaterialSpec {
[]: string;
}
export interface ArraySpec {
[]: string[];
}