// generated by diplomat-tool import type { NucleationError } from "./NucleationError.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * Item model generation configuration. Wraps {@link crate::meshing::ItemModelConfig}. */ export class ItemModelConfig { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Create a config for a model named `model_name` (used in resource-pack * file paths). Other options start at their defaults: namespace * "nucleation", centered, 16px texture resolution, item "paper", * custom model data "1", auto scale. */ static create(modelName: string): ItemModelConfig; /** * Set the resource-pack namespace (default: "nucleation"). */ setNamespace(namespace: string): void; /** * Center the schematic within the model bounds (default: true). */ setCenter(center: boolean): void; /** * Set the texture resolution in pixels per block face (default: 16). */ setTextureResolution(resolution: number): void; /** * Set the Minecraft item the model binds to (default: "paper"). */ setItem(item: string): void; /** * Set the custom-model-data string used to select this model in game * (default: "1"). */ setCustomModelData(cmd: string): void; /** * Uniform scale. */ setScale(scale: number): void; /** * Per-axis scale. */ setScaleXyz(sx: number, sy: number, sz: number): void; /** * Auto-fit scale. */ setScaleAuto(): void; }