minecraft-bedrock-json-types
Version:
Typescript types for Minecraft Bedrock's add-on json configuration files.
94 lines (93 loc) • 1.73 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 NumMipLevels = number;
/**
* UNDOCUMENTED.
*/
type Padding = number;
/**
* UNDOCUMENTED.
*/
type ResourcePackName = string;
type Texture = (Texture1 | Texture2);
/**
* A texture file.
*/
type Texture1 = string;
/**
* A texture file.
*/
type Path = string;
/**
* The tint color to be applied to the texture.
*/
type TintColor = string;
/**
* A texture file.
*/
type Path1 = string;
/**
* The weight of the texture.
*/
type Weight = number;
/**
* The possible variations to use for this texture.
*/
type Variantions = Variantion[];
/**
* UNDOCUMENTED.
*/
type TextureName = string;
/**
* An collection of texture definitions.
*/
export interface TerrainTexture {
num_mip_levels?: NumMipLevels;
padding?: Padding;
resource_pack_name?: ResourcePackName;
texture_data?: TextureData;
texture_name?: TextureName;
}
/**
* UNDOCUMENTED.
*/
interface TextureData {
[k: string]: TextureData1;
}
/**
* UNDOCUMENTED.
*/
interface TextureData1 {
textures?: (Texture | Texture[]);
[k: string]: unknown;
}
/**
* 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;
}
/**
* One of the variantions, specified along with a possible weight.
*/
interface Variantion {
path: Path1;
weight?: Weight;
[k: string]: unknown;
}
export {};