minerender 2.1.0-alpha.77 → 2.1.0-alpha.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.mts +85 -7
- package/dist/browser/index.d.ts +85 -7
- package/dist/browser/index.js +364 -43
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +364 -43
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +364 -43
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +85 -7
- package/dist/node/index.d.ts +85 -7
- package/dist/node/index.js +365 -43
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +364 -43
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.mts
CHANGED
|
@@ -523,6 +523,8 @@ interface ItemModel extends Model {
|
|
|
523
523
|
gui_light?: GuiLight;
|
|
524
524
|
special?: SpecialItemRenderer;
|
|
525
525
|
tints?: ItemTintSource[];
|
|
526
|
+
/** Ordered composite children, each with its own textures, display pose, and tint sources. */
|
|
527
|
+
parts?: ItemModel[];
|
|
526
528
|
}
|
|
527
529
|
/** An sRGB packed `0xRRGGBB` value or an RGB triple with components from 0 to 1. */
|
|
528
530
|
type ItemTintColor = number | TripleArray;
|
|
@@ -1186,26 +1188,46 @@ declare class Fonts {
|
|
|
1186
1188
|
private static bitmap;
|
|
1187
1189
|
}
|
|
1188
1190
|
|
|
1191
|
+
/** Caller-supplied item-preview state passed to {@link Models.getMerged}. */
|
|
1192
|
+
interface ItemModelContext {
|
|
1193
|
+
/** Context used by display-context selectors, overriding `properties`. Defaults to GUI. */
|
|
1194
|
+
displayContext?: DisplayPosition | "none";
|
|
1195
|
+
/** Explicit property overrides. Nodes with the same ID share one override, regardless of their parameters. */
|
|
1196
|
+
properties?: Record<string, boolean | string | number>;
|
|
1197
|
+
/** Supplied component JSON by ID. Item-registry defaults are not added; component selectors compare structural JSON values. */
|
|
1198
|
+
components?: Record<string, unknown>;
|
|
1199
|
+
/** Stack count, as a nonnegative integer. Defaults to 1; absent `max_stack_size` also defaults to 1. */
|
|
1200
|
+
count?: number;
|
|
1201
|
+
/** Item-model keys by reference-node ID, such as `minecraft:bundle/selected_item`. Unset references draw nothing. */
|
|
1202
|
+
itemReferences?: Record<string, AssetKey>;
|
|
1203
|
+
}
|
|
1189
1204
|
/** Loads and caches Java block/item models, including inherited geometry and textures. */
|
|
1190
1205
|
declare class Models {
|
|
1191
1206
|
private static _persistentCache;
|
|
1192
1207
|
private static get PERSISTENT_CACHE();
|
|
1193
1208
|
/** Lists item filenames from the asset source's `_list.json`, with a legacy model-directory fallback. */
|
|
1194
1209
|
static getItemList(): Promise<string[]>;
|
|
1195
|
-
static loadAndMerge(key: AssetKey): Promise<Maybe<Model>>;
|
|
1210
|
+
static loadAndMerge(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1196
1211
|
private static getItemModel;
|
|
1197
|
-
private static
|
|
1212
|
+
private static contextIdentifier;
|
|
1213
|
+
private static snapshotContext;
|
|
1214
|
+
private static contextKey;
|
|
1215
|
+
private static snapshotJson;
|
|
1216
|
+
private static propertyValue;
|
|
1217
|
+
private static selectItemModel;
|
|
1198
1218
|
/** Loads one model file without resolving its parents. Returns `undefined` when the file is missing. */
|
|
1199
1219
|
static getRaw(key: AssetKey): Promise<Maybe<Model>>;
|
|
1200
1220
|
/**
|
|
1201
1221
|
* Loads a model and resolves its parent chain. Returns `undefined` when the model is missing.
|
|
1202
|
-
* Item keys
|
|
1222
|
+
* Item keys default to GUI context and a stack count of 1. Unresolved conditions are false and numeric properties are zero.
|
|
1223
|
+
* Pass `context` to supply component values, property overrides, and item references for a preview.
|
|
1224
|
+
* Composite items retain independently merged children in `ItemModel.parts`.
|
|
1203
1225
|
*
|
|
1204
1226
|
* @param key - Model key, for example `AssetKey.parse("models", "minecraft:item/diamond_sword")`.
|
|
1205
1227
|
*/
|
|
1206
|
-
static getMerged(key: AssetKey): Promise<Maybe<Model>>;
|
|
1228
|
+
static getMerged(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1207
1229
|
/** Alias for {@link getMerged}. */
|
|
1208
|
-
static get(key: AssetKey): Promise<Maybe<Model>>;
|
|
1230
|
+
static get(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1209
1231
|
/** Clears persisted models. Use {@link Caching.clear} to also discard in-memory assets. */
|
|
1210
1232
|
static clearCache(): Promise<void>;
|
|
1211
1233
|
}
|
|
@@ -1362,6 +1384,7 @@ declare class ModelObject extends SceneObject {
|
|
|
1362
1384
|
private atlasTexture?;
|
|
1363
1385
|
private unsubscribeAtlas?;
|
|
1364
1386
|
private readonly specialMaterials;
|
|
1387
|
+
private readonly geometries;
|
|
1365
1388
|
blockParent: Maybe<BlockObject>;
|
|
1366
1389
|
private meshesCreated;
|
|
1367
1390
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -2334,8 +2357,45 @@ declare class SceneExporter {
|
|
|
2334
2357
|
static toGLTF(root: Object3D, options?: SceneGLTFExportOptions): Promise<Record<string, any> | ArrayBuffer>;
|
|
2335
2358
|
}
|
|
2336
2359
|
|
|
2360
|
+
/** Container coordinates in GUI pixels. Crops refer to vanilla's 256×256 sheets; {@link GuiHelper.container} scales them for resource packs. */
|
|
2361
|
+
declare const GUI_CONTAINER_LAYOUTS: {
|
|
2362
|
+
readonly generic_54: {
|
|
2363
|
+
readonly texture: "minecraft:gui/container/generic_54";
|
|
2364
|
+
readonly crop: readonly [0, 0, 176, 222];
|
|
2365
|
+
readonly slotOrigin: readonly [8, 18];
|
|
2366
|
+
readonly slotOffset: readonly [18, 18];
|
|
2367
|
+
readonly rowSize: 9;
|
|
2368
|
+
readonly slotCount: 54;
|
|
2369
|
+
};
|
|
2370
|
+
readonly crafting_table: {
|
|
2371
|
+
readonly texture: "minecraft:gui/container/crafting_table";
|
|
2372
|
+
readonly crop: readonly [0, 0, 176, 166];
|
|
2373
|
+
readonly slotOrigin: readonly [30, 17];
|
|
2374
|
+
readonly slotOffset: readonly [18, 18];
|
|
2375
|
+
readonly rowSize: 3;
|
|
2376
|
+
readonly slotCount: 9;
|
|
2377
|
+
readonly resultPosition: readonly [124, 35];
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
type GuiContainerType = keyof typeof GUI_CONTAINER_LAYOUTS;
|
|
2381
|
+
type GuiBossBarColor = "pink" | "blue" | "red" | "green" | "yellow" | "purple" | "white";
|
|
2382
|
+
type GuiBookButtonState = "hidden" | "normal" | "hover";
|
|
2337
2383
|
/** Creates GUI positions and layer lists for {@link MineRenderScene.addGui}. */
|
|
2338
2384
|
declare class GuiHelper {
|
|
2385
|
+
/**
|
|
2386
|
+
* Creates a 182×5 boss bar using the active resource pack. Finite progress is clamped to 0–1.
|
|
2387
|
+
* The fill crops the source image; explicit crops do not apply `.mcmeta` sprite scaling.
|
|
2388
|
+
*/
|
|
2389
|
+
static bossBar(options?: GuiBossBarOptions): Promise<GuiLayer[]>;
|
|
2390
|
+
/**
|
|
2391
|
+
* Creates a 192×192 book page with optional arrows and supplied text. Buttons are hidden by default.
|
|
2392
|
+
* Callers choose the page content and button states; this helper does not paginate or handle clicks.
|
|
2393
|
+
*/
|
|
2394
|
+
static book(options?: GuiBookOptions): Promise<GuiLayer[]>;
|
|
2395
|
+
/** Creates a container background. Use {@link GUI_CONTAINER_LAYOUTS} with {@link inventorySlot} to place its items. */
|
|
2396
|
+
static container(type: GuiContainerType, position?: [number, number]): Promise<GuiLayer[]>;
|
|
2397
|
+
private static validatePosition;
|
|
2398
|
+
private static cropTexture;
|
|
2339
2399
|
/** Sizes a tooltip around supplied text; the first entry is its title. */
|
|
2340
2400
|
static tooltip(lines: readonly GuiText[], options?: GuiTooltipOptions): Promise<GuiLayer[]>;
|
|
2341
2401
|
/**
|
|
@@ -2345,10 +2405,28 @@ declare class GuiHelper {
|
|
|
2345
2405
|
* @param offset - Horizontal and vertical spacing between slot origins, in pixels.
|
|
2346
2406
|
* @param rowSize - Slots per row when `slot` is an index.
|
|
2347
2407
|
*/
|
|
2348
|
-
static inventorySlot(slot: number | [number, number], origin?: [number, number], offset?: [number, number], rowSize?: number): [number, number];
|
|
2408
|
+
static inventorySlot(slot: number | readonly [number, number], origin?: readonly [number, number], offset?: readonly [number, number], rowSize?: number): [number, number];
|
|
2349
2409
|
/** Creates crafting-table layers for ingredients and the result; stack counts are not drawn. */
|
|
2350
2410
|
static recipe(recipe: GuiRecipe, options?: GuiRecipeOptions): GuiLayer[];
|
|
2351
2411
|
}
|
|
2412
|
+
/** Settings passed to {@link GuiHelper.bossBar}. */
|
|
2413
|
+
interface GuiBossBarOptions {
|
|
2414
|
+
/** Vanilla sprite color. Defaults to `pink`. */
|
|
2415
|
+
color?: GuiBossBarColor;
|
|
2416
|
+
/** Fill from 0 to 1, rounded to vanilla's discrete pixel width. Defaults to 1. */
|
|
2417
|
+
progress?: number;
|
|
2418
|
+
/** Top-left position in GUI pixels. Defaults to `[0, 0]`. */
|
|
2419
|
+
position?: [number, number];
|
|
2420
|
+
}
|
|
2421
|
+
/** Settings passed to {@link GuiHelper.book}. Text defaults to black, unshadowed, and wrapped at 114 pixels. */
|
|
2422
|
+
interface GuiBookOptions extends GuiTextOptions {
|
|
2423
|
+
/** Top-left position of the book background in GUI pixels. Defaults to `[0, 0]`. */
|
|
2424
|
+
position?: [number, number];
|
|
2425
|
+
previous?: GuiBookButtonState;
|
|
2426
|
+
next?: GuiBookButtonState;
|
|
2427
|
+
/** Content for one page. The caller keeps it within the 128-pixel text height. */
|
|
2428
|
+
text?: GuiText;
|
|
2429
|
+
}
|
|
2352
2430
|
/** Settings passed to {@link GuiHelper.tooltip}. Its default `lineHeight` is 10 GUI pixels. */
|
|
2353
2431
|
interface GuiTooltipOptions extends GuiTextOptions {
|
|
2354
2432
|
/** Top-left text position, inside the tooltip's padding. */
|
|
@@ -3155,4 +3233,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
3155
3233
|
*/
|
|
3156
3234
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
3157
3235
|
|
|
3158
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3236
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, GUI_CONTAINER_LAYOUTS, Geometries, type GuiBookButtonState, type GuiBookOptions, type GuiBossBarColor, type GuiBossBarOptions, type GuiContainerType, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -523,6 +523,8 @@ interface ItemModel extends Model {
|
|
|
523
523
|
gui_light?: GuiLight;
|
|
524
524
|
special?: SpecialItemRenderer;
|
|
525
525
|
tints?: ItemTintSource[];
|
|
526
|
+
/** Ordered composite children, each with its own textures, display pose, and tint sources. */
|
|
527
|
+
parts?: ItemModel[];
|
|
526
528
|
}
|
|
527
529
|
/** An sRGB packed `0xRRGGBB` value or an RGB triple with components from 0 to 1. */
|
|
528
530
|
type ItemTintColor = number | TripleArray;
|
|
@@ -1186,26 +1188,46 @@ declare class Fonts {
|
|
|
1186
1188
|
private static bitmap;
|
|
1187
1189
|
}
|
|
1188
1190
|
|
|
1191
|
+
/** Caller-supplied item-preview state passed to {@link Models.getMerged}. */
|
|
1192
|
+
interface ItemModelContext {
|
|
1193
|
+
/** Context used by display-context selectors, overriding `properties`. Defaults to GUI. */
|
|
1194
|
+
displayContext?: DisplayPosition | "none";
|
|
1195
|
+
/** Explicit property overrides. Nodes with the same ID share one override, regardless of their parameters. */
|
|
1196
|
+
properties?: Record<string, boolean | string | number>;
|
|
1197
|
+
/** Supplied component JSON by ID. Item-registry defaults are not added; component selectors compare structural JSON values. */
|
|
1198
|
+
components?: Record<string, unknown>;
|
|
1199
|
+
/** Stack count, as a nonnegative integer. Defaults to 1; absent `max_stack_size` also defaults to 1. */
|
|
1200
|
+
count?: number;
|
|
1201
|
+
/** Item-model keys by reference-node ID, such as `minecraft:bundle/selected_item`. Unset references draw nothing. */
|
|
1202
|
+
itemReferences?: Record<string, AssetKey>;
|
|
1203
|
+
}
|
|
1189
1204
|
/** Loads and caches Java block/item models, including inherited geometry and textures. */
|
|
1190
1205
|
declare class Models {
|
|
1191
1206
|
private static _persistentCache;
|
|
1192
1207
|
private static get PERSISTENT_CACHE();
|
|
1193
1208
|
/** Lists item filenames from the asset source's `_list.json`, with a legacy model-directory fallback. */
|
|
1194
1209
|
static getItemList(): Promise<string[]>;
|
|
1195
|
-
static loadAndMerge(key: AssetKey): Promise<Maybe<Model>>;
|
|
1210
|
+
static loadAndMerge(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1196
1211
|
private static getItemModel;
|
|
1197
|
-
private static
|
|
1212
|
+
private static contextIdentifier;
|
|
1213
|
+
private static snapshotContext;
|
|
1214
|
+
private static contextKey;
|
|
1215
|
+
private static snapshotJson;
|
|
1216
|
+
private static propertyValue;
|
|
1217
|
+
private static selectItemModel;
|
|
1198
1218
|
/** Loads one model file without resolving its parents. Returns `undefined` when the file is missing. */
|
|
1199
1219
|
static getRaw(key: AssetKey): Promise<Maybe<Model>>;
|
|
1200
1220
|
/**
|
|
1201
1221
|
* Loads a model and resolves its parent chain. Returns `undefined` when the model is missing.
|
|
1202
|
-
* Item keys
|
|
1222
|
+
* Item keys default to GUI context and a stack count of 1. Unresolved conditions are false and numeric properties are zero.
|
|
1223
|
+
* Pass `context` to supply component values, property overrides, and item references for a preview.
|
|
1224
|
+
* Composite items retain independently merged children in `ItemModel.parts`.
|
|
1203
1225
|
*
|
|
1204
1226
|
* @param key - Model key, for example `AssetKey.parse("models", "minecraft:item/diamond_sword")`.
|
|
1205
1227
|
*/
|
|
1206
|
-
static getMerged(key: AssetKey): Promise<Maybe<Model>>;
|
|
1228
|
+
static getMerged(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1207
1229
|
/** Alias for {@link getMerged}. */
|
|
1208
|
-
static get(key: AssetKey): Promise<Maybe<Model>>;
|
|
1230
|
+
static get(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1209
1231
|
/** Clears persisted models. Use {@link Caching.clear} to also discard in-memory assets. */
|
|
1210
1232
|
static clearCache(): Promise<void>;
|
|
1211
1233
|
}
|
|
@@ -1362,6 +1384,7 @@ declare class ModelObject extends SceneObject {
|
|
|
1362
1384
|
private atlasTexture?;
|
|
1363
1385
|
private unsubscribeAtlas?;
|
|
1364
1386
|
private readonly specialMaterials;
|
|
1387
|
+
private readonly geometries;
|
|
1365
1388
|
blockParent: Maybe<BlockObject>;
|
|
1366
1389
|
private meshesCreated;
|
|
1367
1390
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -2334,8 +2357,45 @@ declare class SceneExporter {
|
|
|
2334
2357
|
static toGLTF(root: Object3D, options?: SceneGLTFExportOptions): Promise<Record<string, any> | ArrayBuffer>;
|
|
2335
2358
|
}
|
|
2336
2359
|
|
|
2360
|
+
/** Container coordinates in GUI pixels. Crops refer to vanilla's 256×256 sheets; {@link GuiHelper.container} scales them for resource packs. */
|
|
2361
|
+
declare const GUI_CONTAINER_LAYOUTS: {
|
|
2362
|
+
readonly generic_54: {
|
|
2363
|
+
readonly texture: "minecraft:gui/container/generic_54";
|
|
2364
|
+
readonly crop: readonly [0, 0, 176, 222];
|
|
2365
|
+
readonly slotOrigin: readonly [8, 18];
|
|
2366
|
+
readonly slotOffset: readonly [18, 18];
|
|
2367
|
+
readonly rowSize: 9;
|
|
2368
|
+
readonly slotCount: 54;
|
|
2369
|
+
};
|
|
2370
|
+
readonly crafting_table: {
|
|
2371
|
+
readonly texture: "minecraft:gui/container/crafting_table";
|
|
2372
|
+
readonly crop: readonly [0, 0, 176, 166];
|
|
2373
|
+
readonly slotOrigin: readonly [30, 17];
|
|
2374
|
+
readonly slotOffset: readonly [18, 18];
|
|
2375
|
+
readonly rowSize: 3;
|
|
2376
|
+
readonly slotCount: 9;
|
|
2377
|
+
readonly resultPosition: readonly [124, 35];
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
type GuiContainerType = keyof typeof GUI_CONTAINER_LAYOUTS;
|
|
2381
|
+
type GuiBossBarColor = "pink" | "blue" | "red" | "green" | "yellow" | "purple" | "white";
|
|
2382
|
+
type GuiBookButtonState = "hidden" | "normal" | "hover";
|
|
2337
2383
|
/** Creates GUI positions and layer lists for {@link MineRenderScene.addGui}. */
|
|
2338
2384
|
declare class GuiHelper {
|
|
2385
|
+
/**
|
|
2386
|
+
* Creates a 182×5 boss bar using the active resource pack. Finite progress is clamped to 0–1.
|
|
2387
|
+
* The fill crops the source image; explicit crops do not apply `.mcmeta` sprite scaling.
|
|
2388
|
+
*/
|
|
2389
|
+
static bossBar(options?: GuiBossBarOptions): Promise<GuiLayer[]>;
|
|
2390
|
+
/**
|
|
2391
|
+
* Creates a 192×192 book page with optional arrows and supplied text. Buttons are hidden by default.
|
|
2392
|
+
* Callers choose the page content and button states; this helper does not paginate or handle clicks.
|
|
2393
|
+
*/
|
|
2394
|
+
static book(options?: GuiBookOptions): Promise<GuiLayer[]>;
|
|
2395
|
+
/** Creates a container background. Use {@link GUI_CONTAINER_LAYOUTS} with {@link inventorySlot} to place its items. */
|
|
2396
|
+
static container(type: GuiContainerType, position?: [number, number]): Promise<GuiLayer[]>;
|
|
2397
|
+
private static validatePosition;
|
|
2398
|
+
private static cropTexture;
|
|
2339
2399
|
/** Sizes a tooltip around supplied text; the first entry is its title. */
|
|
2340
2400
|
static tooltip(lines: readonly GuiText[], options?: GuiTooltipOptions): Promise<GuiLayer[]>;
|
|
2341
2401
|
/**
|
|
@@ -2345,10 +2405,28 @@ declare class GuiHelper {
|
|
|
2345
2405
|
* @param offset - Horizontal and vertical spacing between slot origins, in pixels.
|
|
2346
2406
|
* @param rowSize - Slots per row when `slot` is an index.
|
|
2347
2407
|
*/
|
|
2348
|
-
static inventorySlot(slot: number | [number, number], origin?: [number, number], offset?: [number, number], rowSize?: number): [number, number];
|
|
2408
|
+
static inventorySlot(slot: number | readonly [number, number], origin?: readonly [number, number], offset?: readonly [number, number], rowSize?: number): [number, number];
|
|
2349
2409
|
/** Creates crafting-table layers for ingredients and the result; stack counts are not drawn. */
|
|
2350
2410
|
static recipe(recipe: GuiRecipe, options?: GuiRecipeOptions): GuiLayer[];
|
|
2351
2411
|
}
|
|
2412
|
+
/** Settings passed to {@link GuiHelper.bossBar}. */
|
|
2413
|
+
interface GuiBossBarOptions {
|
|
2414
|
+
/** Vanilla sprite color. Defaults to `pink`. */
|
|
2415
|
+
color?: GuiBossBarColor;
|
|
2416
|
+
/** Fill from 0 to 1, rounded to vanilla's discrete pixel width. Defaults to 1. */
|
|
2417
|
+
progress?: number;
|
|
2418
|
+
/** Top-left position in GUI pixels. Defaults to `[0, 0]`. */
|
|
2419
|
+
position?: [number, number];
|
|
2420
|
+
}
|
|
2421
|
+
/** Settings passed to {@link GuiHelper.book}. Text defaults to black, unshadowed, and wrapped at 114 pixels. */
|
|
2422
|
+
interface GuiBookOptions extends GuiTextOptions {
|
|
2423
|
+
/** Top-left position of the book background in GUI pixels. Defaults to `[0, 0]`. */
|
|
2424
|
+
position?: [number, number];
|
|
2425
|
+
previous?: GuiBookButtonState;
|
|
2426
|
+
next?: GuiBookButtonState;
|
|
2427
|
+
/** Content for one page. The caller keeps it within the 128-pixel text height. */
|
|
2428
|
+
text?: GuiText;
|
|
2429
|
+
}
|
|
2352
2430
|
/** Settings passed to {@link GuiHelper.tooltip}. Its default `lineHeight` is 10 GUI pixels. */
|
|
2353
2431
|
interface GuiTooltipOptions extends GuiTextOptions {
|
|
2354
2432
|
/** Top-left text position, inside the tooltip's padding. */
|
|
@@ -3155,4 +3233,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
3155
3233
|
*/
|
|
3156
3234
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
3157
3235
|
|
|
3158
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3236
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, GUI_CONTAINER_LAYOUTS, Geometries, type GuiBookButtonState, type GuiBookOptions, type GuiBossBarColor, type GuiBossBarOptions, type GuiContainerType, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|