@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
14 lines (13 loc) • 682 B
TypeScript
import BlockType from "../minecraft/BlockType";
export declare class ProjectDefinitionUtilities {
static getVanillaBlockTextureById(blockId: string, side: string): string;
static getVanillaBlockTexture(blockType: BlockType, side: string, useCarried?: boolean): string | undefined;
/**
* Returns both the texture path and the overlay_color (if present) from terrain_texture.json.
* Blocks like grass use overlay_color to tint the grayscale side texture with a biome color.
*/
static getVanillaBlockTextureWithOverlay(blockType: BlockType, side: string, useCarried?: boolean): {
path: string;
overlayColor?: string;
} | undefined;
}