bc-minecraft-bedrock-project
Version:
The typescript library responsible for reading/parsing minecraft bedrock data
31 lines (30 loc) • 866 B
TypeScript
import { ComponentContainer } from "bc-minecraft-bedrock-types/lib/minecraft/components";
import { SMap } from "../../types";
import { FormatVersion } from "../types/format-version";
export interface Block extends Readonly<FormatVersion> {
format_version: string;
"minecraft:block": {
description: {
identifier: string;
register_to_creative_menu?: boolean;
is_experimental?: boolean;
properties?: SMap<string[] | number[] | boolean[]>;
};
permutations?: Permutation[];
components: ComponentContainer;
events?: SMap<any>;
};
}
export interface Permutation {
condition?: string;
components?: ComponentContainer;
}
/** */
export declare namespace Block {
/**
*
* @param value
* @returns
*/
function is(value: any): value is Block;
}