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/node/index.d.mts
CHANGED
|
@@ -524,6 +524,8 @@ interface ItemModel extends Model {
|
|
|
524
524
|
gui_light?: GuiLight;
|
|
525
525
|
special?: SpecialItemRenderer;
|
|
526
526
|
tints?: ItemTintSource[];
|
|
527
|
+
/** Ordered composite children, each with its own textures, display pose, and tint sources. */
|
|
528
|
+
parts?: ItemModel[];
|
|
527
529
|
}
|
|
528
530
|
/** An sRGB packed `0xRRGGBB` value or an RGB triple with components from 0 to 1. */
|
|
529
531
|
type ItemTintColor = number | TripleArray;
|
|
@@ -1187,26 +1189,46 @@ declare class Fonts {
|
|
|
1187
1189
|
private static bitmap;
|
|
1188
1190
|
}
|
|
1189
1191
|
|
|
1192
|
+
/** Caller-supplied item-preview state passed to {@link Models.getMerged}. */
|
|
1193
|
+
interface ItemModelContext {
|
|
1194
|
+
/** Context used by display-context selectors, overriding `properties`. Defaults to GUI. */
|
|
1195
|
+
displayContext?: DisplayPosition | "none";
|
|
1196
|
+
/** Explicit property overrides. Nodes with the same ID share one override, regardless of their parameters. */
|
|
1197
|
+
properties?: Record<string, boolean | string | number>;
|
|
1198
|
+
/** Supplied component JSON by ID. Item-registry defaults are not added; component selectors compare structural JSON values. */
|
|
1199
|
+
components?: Record<string, unknown>;
|
|
1200
|
+
/** Stack count, as a nonnegative integer. Defaults to 1; absent `max_stack_size` also defaults to 1. */
|
|
1201
|
+
count?: number;
|
|
1202
|
+
/** Item-model keys by reference-node ID, such as `minecraft:bundle/selected_item`. Unset references draw nothing. */
|
|
1203
|
+
itemReferences?: Record<string, AssetKey>;
|
|
1204
|
+
}
|
|
1190
1205
|
/** Loads and caches Java block/item models, including inherited geometry and textures. */
|
|
1191
1206
|
declare class Models {
|
|
1192
1207
|
private static _persistentCache;
|
|
1193
1208
|
private static get PERSISTENT_CACHE();
|
|
1194
1209
|
/** Lists item filenames from the asset source's `_list.json`, with a legacy model-directory fallback. */
|
|
1195
1210
|
static getItemList(): Promise<string[]>;
|
|
1196
|
-
static loadAndMerge(key: AssetKey): Promise<Maybe<Model>>;
|
|
1211
|
+
static loadAndMerge(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1197
1212
|
private static getItemModel;
|
|
1198
|
-
private static
|
|
1213
|
+
private static contextIdentifier;
|
|
1214
|
+
private static snapshotContext;
|
|
1215
|
+
private static contextKey;
|
|
1216
|
+
private static snapshotJson;
|
|
1217
|
+
private static propertyValue;
|
|
1218
|
+
private static selectItemModel;
|
|
1199
1219
|
/** Loads one model file without resolving its parents. Returns `undefined` when the file is missing. */
|
|
1200
1220
|
static getRaw(key: AssetKey): Promise<Maybe<Model>>;
|
|
1201
1221
|
/**
|
|
1202
1222
|
* Loads a model and resolves its parent chain. Returns `undefined` when the model is missing.
|
|
1203
|
-
* Item keys
|
|
1223
|
+
* Item keys default to GUI context and a stack count of 1. Unresolved conditions are false and numeric properties are zero.
|
|
1224
|
+
* Pass `context` to supply component values, property overrides, and item references for a preview.
|
|
1225
|
+
* Composite items retain independently merged children in `ItemModel.parts`.
|
|
1204
1226
|
*
|
|
1205
1227
|
* @param key - Model key, for example `AssetKey.parse("models", "minecraft:item/diamond_sword")`.
|
|
1206
1228
|
*/
|
|
1207
|
-
static getMerged(key: AssetKey): Promise<Maybe<Model>>;
|
|
1229
|
+
static getMerged(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1208
1230
|
/** Alias for {@link getMerged}. */
|
|
1209
|
-
static get(key: AssetKey): Promise<Maybe<Model>>;
|
|
1231
|
+
static get(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1210
1232
|
/** Clears persisted models. Use {@link Caching.clear} to also discard in-memory assets. */
|
|
1211
1233
|
static clearCache(): Promise<void>;
|
|
1212
1234
|
}
|
|
@@ -1363,6 +1385,7 @@ declare class ModelObject extends SceneObject {
|
|
|
1363
1385
|
private atlasTexture?;
|
|
1364
1386
|
private unsubscribeAtlas?;
|
|
1365
1387
|
private readonly specialMaterials;
|
|
1388
|
+
private readonly geometries;
|
|
1366
1389
|
blockParent: Maybe<BlockObject>;
|
|
1367
1390
|
private meshesCreated;
|
|
1368
1391
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -2335,8 +2358,45 @@ declare class SceneExporter {
|
|
|
2335
2358
|
static toGLTF(root: Object3D, options?: SceneGLTFExportOptions): Promise<Record<string, any> | ArrayBuffer>;
|
|
2336
2359
|
}
|
|
2337
2360
|
|
|
2361
|
+
/** Container coordinates in GUI pixels. Crops refer to vanilla's 256×256 sheets; {@link GuiHelper.container} scales them for resource packs. */
|
|
2362
|
+
declare const GUI_CONTAINER_LAYOUTS: {
|
|
2363
|
+
readonly generic_54: {
|
|
2364
|
+
readonly texture: "minecraft:gui/container/generic_54";
|
|
2365
|
+
readonly crop: readonly [0, 0, 176, 222];
|
|
2366
|
+
readonly slotOrigin: readonly [8, 18];
|
|
2367
|
+
readonly slotOffset: readonly [18, 18];
|
|
2368
|
+
readonly rowSize: 9;
|
|
2369
|
+
readonly slotCount: 54;
|
|
2370
|
+
};
|
|
2371
|
+
readonly crafting_table: {
|
|
2372
|
+
readonly texture: "minecraft:gui/container/crafting_table";
|
|
2373
|
+
readonly crop: readonly [0, 0, 176, 166];
|
|
2374
|
+
readonly slotOrigin: readonly [30, 17];
|
|
2375
|
+
readonly slotOffset: readonly [18, 18];
|
|
2376
|
+
readonly rowSize: 3;
|
|
2377
|
+
readonly slotCount: 9;
|
|
2378
|
+
readonly resultPosition: readonly [124, 35];
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
type GuiContainerType = keyof typeof GUI_CONTAINER_LAYOUTS;
|
|
2382
|
+
type GuiBossBarColor = "pink" | "blue" | "red" | "green" | "yellow" | "purple" | "white";
|
|
2383
|
+
type GuiBookButtonState = "hidden" | "normal" | "hover";
|
|
2338
2384
|
/** Creates GUI positions and layer lists for {@link MineRenderScene.addGui}. */
|
|
2339
2385
|
declare class GuiHelper {
|
|
2386
|
+
/**
|
|
2387
|
+
* Creates a 182×5 boss bar using the active resource pack. Finite progress is clamped to 0–1.
|
|
2388
|
+
* The fill crops the source image; explicit crops do not apply `.mcmeta` sprite scaling.
|
|
2389
|
+
*/
|
|
2390
|
+
static bossBar(options?: GuiBossBarOptions): Promise<GuiLayer[]>;
|
|
2391
|
+
/**
|
|
2392
|
+
* Creates a 192×192 book page with optional arrows and supplied text. Buttons are hidden by default.
|
|
2393
|
+
* Callers choose the page content and button states; this helper does not paginate or handle clicks.
|
|
2394
|
+
*/
|
|
2395
|
+
static book(options?: GuiBookOptions): Promise<GuiLayer[]>;
|
|
2396
|
+
/** Creates a container background. Use {@link GUI_CONTAINER_LAYOUTS} with {@link inventorySlot} to place its items. */
|
|
2397
|
+
static container(type: GuiContainerType, position?: [number, number]): Promise<GuiLayer[]>;
|
|
2398
|
+
private static validatePosition;
|
|
2399
|
+
private static cropTexture;
|
|
2340
2400
|
/** Sizes a tooltip around supplied text; the first entry is its title. */
|
|
2341
2401
|
static tooltip(lines: readonly GuiText[], options?: GuiTooltipOptions): Promise<GuiLayer[]>;
|
|
2342
2402
|
/**
|
|
@@ -2346,10 +2406,28 @@ declare class GuiHelper {
|
|
|
2346
2406
|
* @param offset - Horizontal and vertical spacing between slot origins, in pixels.
|
|
2347
2407
|
* @param rowSize - Slots per row when `slot` is an index.
|
|
2348
2408
|
*/
|
|
2349
|
-
static inventorySlot(slot: number | [number, number], origin?: [number, number], offset?: [number, number], rowSize?: number): [number, number];
|
|
2409
|
+
static inventorySlot(slot: number | readonly [number, number], origin?: readonly [number, number], offset?: readonly [number, number], rowSize?: number): [number, number];
|
|
2350
2410
|
/** Creates crafting-table layers for ingredients and the result; stack counts are not drawn. */
|
|
2351
2411
|
static recipe(recipe: GuiRecipe, options?: GuiRecipeOptions): GuiLayer[];
|
|
2352
2412
|
}
|
|
2413
|
+
/** Settings passed to {@link GuiHelper.bossBar}. */
|
|
2414
|
+
interface GuiBossBarOptions {
|
|
2415
|
+
/** Vanilla sprite color. Defaults to `pink`. */
|
|
2416
|
+
color?: GuiBossBarColor;
|
|
2417
|
+
/** Fill from 0 to 1, rounded to vanilla's discrete pixel width. Defaults to 1. */
|
|
2418
|
+
progress?: number;
|
|
2419
|
+
/** Top-left position in GUI pixels. Defaults to `[0, 0]`. */
|
|
2420
|
+
position?: [number, number];
|
|
2421
|
+
}
|
|
2422
|
+
/** Settings passed to {@link GuiHelper.book}. Text defaults to black, unshadowed, and wrapped at 114 pixels. */
|
|
2423
|
+
interface GuiBookOptions extends GuiTextOptions {
|
|
2424
|
+
/** Top-left position of the book background in GUI pixels. Defaults to `[0, 0]`. */
|
|
2425
|
+
position?: [number, number];
|
|
2426
|
+
previous?: GuiBookButtonState;
|
|
2427
|
+
next?: GuiBookButtonState;
|
|
2428
|
+
/** Content for one page. The caller keeps it within the 128-pixel text height. */
|
|
2429
|
+
text?: GuiText;
|
|
2430
|
+
}
|
|
2353
2431
|
/** Settings passed to {@link GuiHelper.tooltip}. Its default `lineHeight` is 10 GUI pixels. */
|
|
2354
2432
|
interface GuiTooltipOptions extends GuiTextOptions {
|
|
2355
2433
|
/** Top-left text position, inside the tooltip's padding. */
|
|
@@ -3158,4 +3236,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
3158
3236
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
3159
3237
|
}
|
|
3160
3238
|
|
|
3161
|
-
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, 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, NodeCache, NodeEnv, 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, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3239
|
+
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, 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, NodeCache, NodeEnv, 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, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -524,6 +524,8 @@ interface ItemModel extends Model {
|
|
|
524
524
|
gui_light?: GuiLight;
|
|
525
525
|
special?: SpecialItemRenderer;
|
|
526
526
|
tints?: ItemTintSource[];
|
|
527
|
+
/** Ordered composite children, each with its own textures, display pose, and tint sources. */
|
|
528
|
+
parts?: ItemModel[];
|
|
527
529
|
}
|
|
528
530
|
/** An sRGB packed `0xRRGGBB` value or an RGB triple with components from 0 to 1. */
|
|
529
531
|
type ItemTintColor = number | TripleArray;
|
|
@@ -1187,26 +1189,46 @@ declare class Fonts {
|
|
|
1187
1189
|
private static bitmap;
|
|
1188
1190
|
}
|
|
1189
1191
|
|
|
1192
|
+
/** Caller-supplied item-preview state passed to {@link Models.getMerged}. */
|
|
1193
|
+
interface ItemModelContext {
|
|
1194
|
+
/** Context used by display-context selectors, overriding `properties`. Defaults to GUI. */
|
|
1195
|
+
displayContext?: DisplayPosition | "none";
|
|
1196
|
+
/** Explicit property overrides. Nodes with the same ID share one override, regardless of their parameters. */
|
|
1197
|
+
properties?: Record<string, boolean | string | number>;
|
|
1198
|
+
/** Supplied component JSON by ID. Item-registry defaults are not added; component selectors compare structural JSON values. */
|
|
1199
|
+
components?: Record<string, unknown>;
|
|
1200
|
+
/** Stack count, as a nonnegative integer. Defaults to 1; absent `max_stack_size` also defaults to 1. */
|
|
1201
|
+
count?: number;
|
|
1202
|
+
/** Item-model keys by reference-node ID, such as `minecraft:bundle/selected_item`. Unset references draw nothing. */
|
|
1203
|
+
itemReferences?: Record<string, AssetKey>;
|
|
1204
|
+
}
|
|
1190
1205
|
/** Loads and caches Java block/item models, including inherited geometry and textures. */
|
|
1191
1206
|
declare class Models {
|
|
1192
1207
|
private static _persistentCache;
|
|
1193
1208
|
private static get PERSISTENT_CACHE();
|
|
1194
1209
|
/** Lists item filenames from the asset source's `_list.json`, with a legacy model-directory fallback. */
|
|
1195
1210
|
static getItemList(): Promise<string[]>;
|
|
1196
|
-
static loadAndMerge(key: AssetKey): Promise<Maybe<Model>>;
|
|
1211
|
+
static loadAndMerge(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1197
1212
|
private static getItemModel;
|
|
1198
|
-
private static
|
|
1213
|
+
private static contextIdentifier;
|
|
1214
|
+
private static snapshotContext;
|
|
1215
|
+
private static contextKey;
|
|
1216
|
+
private static snapshotJson;
|
|
1217
|
+
private static propertyValue;
|
|
1218
|
+
private static selectItemModel;
|
|
1199
1219
|
/** Loads one model file without resolving its parents. Returns `undefined` when the file is missing. */
|
|
1200
1220
|
static getRaw(key: AssetKey): Promise<Maybe<Model>>;
|
|
1201
1221
|
/**
|
|
1202
1222
|
* Loads a model and resolves its parent chain. Returns `undefined` when the model is missing.
|
|
1203
|
-
* Item keys
|
|
1223
|
+
* Item keys default to GUI context and a stack count of 1. Unresolved conditions are false and numeric properties are zero.
|
|
1224
|
+
* Pass `context` to supply component values, property overrides, and item references for a preview.
|
|
1225
|
+
* Composite items retain independently merged children in `ItemModel.parts`.
|
|
1204
1226
|
*
|
|
1205
1227
|
* @param key - Model key, for example `AssetKey.parse("models", "minecraft:item/diamond_sword")`.
|
|
1206
1228
|
*/
|
|
1207
|
-
static getMerged(key: AssetKey): Promise<Maybe<Model>>;
|
|
1229
|
+
static getMerged(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1208
1230
|
/** Alias for {@link getMerged}. */
|
|
1209
|
-
static get(key: AssetKey): Promise<Maybe<Model>>;
|
|
1231
|
+
static get(key: AssetKey, context?: ItemModelContext): Promise<Maybe<Model>>;
|
|
1210
1232
|
/** Clears persisted models. Use {@link Caching.clear} to also discard in-memory assets. */
|
|
1211
1233
|
static clearCache(): Promise<void>;
|
|
1212
1234
|
}
|
|
@@ -1363,6 +1385,7 @@ declare class ModelObject extends SceneObject {
|
|
|
1363
1385
|
private atlasTexture?;
|
|
1364
1386
|
private unsubscribeAtlas?;
|
|
1365
1387
|
private readonly specialMaterials;
|
|
1388
|
+
private readonly geometries;
|
|
1366
1389
|
blockParent: Maybe<BlockObject>;
|
|
1367
1390
|
private meshesCreated;
|
|
1368
1391
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -2335,8 +2358,45 @@ declare class SceneExporter {
|
|
|
2335
2358
|
static toGLTF(root: Object3D, options?: SceneGLTFExportOptions): Promise<Record<string, any> | ArrayBuffer>;
|
|
2336
2359
|
}
|
|
2337
2360
|
|
|
2361
|
+
/** Container coordinates in GUI pixels. Crops refer to vanilla's 256×256 sheets; {@link GuiHelper.container} scales them for resource packs. */
|
|
2362
|
+
declare const GUI_CONTAINER_LAYOUTS: {
|
|
2363
|
+
readonly generic_54: {
|
|
2364
|
+
readonly texture: "minecraft:gui/container/generic_54";
|
|
2365
|
+
readonly crop: readonly [0, 0, 176, 222];
|
|
2366
|
+
readonly slotOrigin: readonly [8, 18];
|
|
2367
|
+
readonly slotOffset: readonly [18, 18];
|
|
2368
|
+
readonly rowSize: 9;
|
|
2369
|
+
readonly slotCount: 54;
|
|
2370
|
+
};
|
|
2371
|
+
readonly crafting_table: {
|
|
2372
|
+
readonly texture: "minecraft:gui/container/crafting_table";
|
|
2373
|
+
readonly crop: readonly [0, 0, 176, 166];
|
|
2374
|
+
readonly slotOrigin: readonly [30, 17];
|
|
2375
|
+
readonly slotOffset: readonly [18, 18];
|
|
2376
|
+
readonly rowSize: 3;
|
|
2377
|
+
readonly slotCount: 9;
|
|
2378
|
+
readonly resultPosition: readonly [124, 35];
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
type GuiContainerType = keyof typeof GUI_CONTAINER_LAYOUTS;
|
|
2382
|
+
type GuiBossBarColor = "pink" | "blue" | "red" | "green" | "yellow" | "purple" | "white";
|
|
2383
|
+
type GuiBookButtonState = "hidden" | "normal" | "hover";
|
|
2338
2384
|
/** Creates GUI positions and layer lists for {@link MineRenderScene.addGui}. */
|
|
2339
2385
|
declare class GuiHelper {
|
|
2386
|
+
/**
|
|
2387
|
+
* Creates a 182×5 boss bar using the active resource pack. Finite progress is clamped to 0–1.
|
|
2388
|
+
* The fill crops the source image; explicit crops do not apply `.mcmeta` sprite scaling.
|
|
2389
|
+
*/
|
|
2390
|
+
static bossBar(options?: GuiBossBarOptions): Promise<GuiLayer[]>;
|
|
2391
|
+
/**
|
|
2392
|
+
* Creates a 192×192 book page with optional arrows and supplied text. Buttons are hidden by default.
|
|
2393
|
+
* Callers choose the page content and button states; this helper does not paginate or handle clicks.
|
|
2394
|
+
*/
|
|
2395
|
+
static book(options?: GuiBookOptions): Promise<GuiLayer[]>;
|
|
2396
|
+
/** Creates a container background. Use {@link GUI_CONTAINER_LAYOUTS} with {@link inventorySlot} to place its items. */
|
|
2397
|
+
static container(type: GuiContainerType, position?: [number, number]): Promise<GuiLayer[]>;
|
|
2398
|
+
private static validatePosition;
|
|
2399
|
+
private static cropTexture;
|
|
2340
2400
|
/** Sizes a tooltip around supplied text; the first entry is its title. */
|
|
2341
2401
|
static tooltip(lines: readonly GuiText[], options?: GuiTooltipOptions): Promise<GuiLayer[]>;
|
|
2342
2402
|
/**
|
|
@@ -2346,10 +2406,28 @@ declare class GuiHelper {
|
|
|
2346
2406
|
* @param offset - Horizontal and vertical spacing between slot origins, in pixels.
|
|
2347
2407
|
* @param rowSize - Slots per row when `slot` is an index.
|
|
2348
2408
|
*/
|
|
2349
|
-
static inventorySlot(slot: number | [number, number], origin?: [number, number], offset?: [number, number], rowSize?: number): [number, number];
|
|
2409
|
+
static inventorySlot(slot: number | readonly [number, number], origin?: readonly [number, number], offset?: readonly [number, number], rowSize?: number): [number, number];
|
|
2350
2410
|
/** Creates crafting-table layers for ingredients and the result; stack counts are not drawn. */
|
|
2351
2411
|
static recipe(recipe: GuiRecipe, options?: GuiRecipeOptions): GuiLayer[];
|
|
2352
2412
|
}
|
|
2413
|
+
/** Settings passed to {@link GuiHelper.bossBar}. */
|
|
2414
|
+
interface GuiBossBarOptions {
|
|
2415
|
+
/** Vanilla sprite color. Defaults to `pink`. */
|
|
2416
|
+
color?: GuiBossBarColor;
|
|
2417
|
+
/** Fill from 0 to 1, rounded to vanilla's discrete pixel width. Defaults to 1. */
|
|
2418
|
+
progress?: number;
|
|
2419
|
+
/** Top-left position in GUI pixels. Defaults to `[0, 0]`. */
|
|
2420
|
+
position?: [number, number];
|
|
2421
|
+
}
|
|
2422
|
+
/** Settings passed to {@link GuiHelper.book}. Text defaults to black, unshadowed, and wrapped at 114 pixels. */
|
|
2423
|
+
interface GuiBookOptions extends GuiTextOptions {
|
|
2424
|
+
/** Top-left position of the book background in GUI pixels. Defaults to `[0, 0]`. */
|
|
2425
|
+
position?: [number, number];
|
|
2426
|
+
previous?: GuiBookButtonState;
|
|
2427
|
+
next?: GuiBookButtonState;
|
|
2428
|
+
/** Content for one page. The caller keeps it within the 128-pixel text height. */
|
|
2429
|
+
text?: GuiText;
|
|
2430
|
+
}
|
|
2353
2431
|
/** Settings passed to {@link GuiHelper.tooltip}. Its default `lineHeight` is 10 GUI pixels. */
|
|
2354
2432
|
interface GuiTooltipOptions extends GuiTextOptions {
|
|
2355
2433
|
/** Top-left text position, inside the tooltip's padding. */
|
|
@@ -3158,4 +3236,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
3158
3236
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
3159
3237
|
}
|
|
3160
3238
|
|
|
3161
|
-
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, 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, NodeCache, NodeEnv, 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, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3239
|
+
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, 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, NodeCache, NodeEnv, 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, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|