minecraft-bedrock-json-types
Version:
Typescript types for Minecraft Bedrock's add-on json configuration files.
79 lines (78 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.
*/
/**
* A version that tells minecraft what type of data format can be expected when reading this file.
*/
type FormatVersion = string;
/**
* A version that tells Minecraft what type of data format can be expected when reading this file.
*
* @minItems 3
* @maxItems 3
*/
type FormatVersion1 = [number, number, number];
/**
* Specifies the gamma brightness level to apply to the block texture.
*/
type BrightnessGamma = number;
/**
* Carried Textures.
*/
type CarriedTextures = (string | {
down?: string;
up?: string;
side?: string;
south?: string;
north?: string;
west?: string;
east?: string;
});
/**
* Marks if this block is isotropic or not, or which side are.
*/
type Isotropic = (boolean | {
down?: boolean;
up?: boolean;
side?: boolean;
south?: boolean;
north?: boolean;
west?: boolean;
east?: boolean;
});
/**
* The sound definition of this block.
*/
type Sound = string;
/**
* Textures.
*/
type Sound1 = (string | {
down?: string;
up?: string;
side?: string;
south?: string;
north?: string;
west?: string;
east?: string;
});
/**
* The minecraft block definition file.
*/
export interface ResourceBlocksJSON {
format_version?: (FormatVersion | FormatVersion1);
[k: string]: Block;
}
/**
* Block texture definition.
*/
interface Block {
brightness_gamma?: BrightnessGamma;
carried_textures?: CarriedTextures;
isotropic?: Isotropic;
sound?: Sound;
textures?: Sound1;
}
export {};