minecraft-bedrock-json-types
Version:
Typescript types for Minecraft Bedrock's add-on json configuration files.
87 lines (86 loc) • 1.46 kB
TypeScript
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* UNDOCUMENTED.
*/
type ResourcePackName = string;
type Texture = (Texture1 | Texture2);
/**
* A texture file.
*/
type Texture1 = string;
/**
* A texture file.
*/
type Path = string;
/**
* UNDOCUMENTED.
*/
type TintColor = string;
/**
* A texture file.
*/
type Path1 = string;
/**
* UNDOCUMENTED.
*/
type Weight = number;
/**
* UNDOCUMENTED.
*/
type Variantions = Variantion[];
/**
* A collection of textures.
*/
type TextureData2 = Texture[];
/**
* UNDOCUMENTED.
*/
type TextureName = string;
/**
* UNDOCUMENTED.
*/
export interface ItemTexture {
resource_pack_name?: ResourcePackName;
texture_data?: TextureData;
texture_name?: TextureName;
}
/**
* UNDOCUMENTED.
*/
interface TextureData {
[k: string]: TextureData1;
}
/**
* UNDOCUMENTED.
*/
interface TextureData1 {
textures?: (Texture | TextureData2);
}
/**
* A collection of texture files.
*/
interface Texture2 {
overlay_color?: OverlayColor;
path?: Path;
tint_color?: TintColor;
variations?: Variantions;
}
/**
* The color to apply to the texture.
*/
interface OverlayColor {
[k: string]: unknown;
}
/**
* UNDOCUMENTED.
*/
interface Variantion {
path: Path1;
weight?: Weight;
[k: string]: unknown;
}
export {};