minerender 2.1.0-alpha.87 → 2.1.0-alpha.89
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 +102 -3
- package/dist/browser/index.d.ts +102 -3
- package/dist/browser/index.js +683 -213
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +683 -214
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/section.worker.js +119 -0
- package/dist/browser/section.worker.js.map +1 -0
- package/dist/browser/section.worker.mjs +119 -0
- package/dist/browser/section.worker.mjs.map +1 -0
- package/dist/bundle.js +700 -221
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +101 -3
- package/dist/node/index.d.ts +101 -3
- package/dist/node/index.js +680 -213
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +675 -213
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.mts
CHANGED
|
@@ -106,6 +106,8 @@ interface EnvProvider {
|
|
|
106
106
|
/** Read width/height out of encoded image bytes without fully decoding them. */
|
|
107
107
|
imageSize(data: Uint8Array): ImageSizeInfo;
|
|
108
108
|
openCache(name: string, version: number): PersistentCache;
|
|
109
|
+
/** Optional worker support; returns undefined where unavailable. Only the browser ESM build ships worker files. */
|
|
110
|
+
createWorker?(name: "section"): Worker | undefined;
|
|
109
111
|
}
|
|
110
112
|
/**
|
|
111
113
|
* Registry holding the active {@link EnvProvider}.
|
|
@@ -767,6 +769,8 @@ declare function toRadians(degrees: number): number;
|
|
|
767
769
|
declare function toDegrees(radians: number): number;
|
|
768
770
|
/** Resolves after a delay in milliseconds. */
|
|
769
771
|
declare function sleep(timeout: number): Promise<void>;
|
|
772
|
+
/** Yields to the next macrotask without timer clamping when the platform supports it. */
|
|
773
|
+
declare function yieldToEventLoop(): Promise<void>;
|
|
770
774
|
/** Reduces an angle modulo 360, retaining a negative sign for negative inputs. */
|
|
771
775
|
declare function clampRotationDegrees(deg: number): number;
|
|
772
776
|
declare function isVector3(obj: any): obj is Vector3;
|
|
@@ -2062,6 +2066,16 @@ interface SchematicParserOptions {
|
|
|
2062
2066
|
lenient?: boolean;
|
|
2063
2067
|
}
|
|
2064
2068
|
|
|
2069
|
+
/** Converts Sponge v2/v3 `.schem` NBT into blocks and preserved entity data. */
|
|
2070
|
+
declare class SpongeSchematicParser {
|
|
2071
|
+
/**
|
|
2072
|
+
* Parses decoded NBT with a local block palette, omitting air blocks.
|
|
2073
|
+
* Applies Offset to block and entity positions; size remains the source dimensions.
|
|
2074
|
+
* Biomes and metadata are not imported, and DataVersion does not trigger migration.
|
|
2075
|
+
*/
|
|
2076
|
+
static parse(nbt: NBT): Promise<MultiBlockStructure>;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2065
2079
|
/** Converts Java structure NBT into blocks and preserved entity data for world placement. */
|
|
2066
2080
|
declare class StructureParser {
|
|
2067
2081
|
/**
|
|
@@ -3112,6 +3126,8 @@ declare class ChunkData {
|
|
|
3112
3126
|
set(index: number, block?: Block): void;
|
|
3113
3127
|
clear(): void;
|
|
3114
3128
|
static isAir(block: Maybe<Block>): boolean;
|
|
3129
|
+
/** Identifies a normalized block type and its sorted properties, excluding per-cell NBT. */
|
|
3130
|
+
static paletteKey(block: Block): string;
|
|
3115
3131
|
private static copyBlock;
|
|
3116
3132
|
private static validateIndex;
|
|
3117
3133
|
}
|
|
@@ -3217,6 +3233,9 @@ declare class SectionMesh extends Group {
|
|
|
3217
3233
|
private readonly ownedMeshes;
|
|
3218
3234
|
/** Builds section-local meshes from visible cube faces. `maxAtlasSize` limits each atlas dimension in pixels. */
|
|
3219
3235
|
static build(entries: readonly SectionMeshEntry[], maxAtlasSize?: number): SectionMesh;
|
|
3236
|
+
/** Builds section-local meshes in a browser worker when available, with synchronous fallback. */
|
|
3237
|
+
static buildAsync(entries: readonly SectionMeshEntry[], maxAtlasSize?: number): Promise<SectionMesh>;
|
|
3238
|
+
private static fromPages;
|
|
3220
3239
|
dispose(): void;
|
|
3221
3240
|
}
|
|
3222
3241
|
|
|
@@ -3250,8 +3269,10 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3250
3269
|
private readonly renderedBlocks;
|
|
3251
3270
|
private readonly sectionBlocks;
|
|
3252
3271
|
private readonly hiddenBlocks;
|
|
3272
|
+
private readonly blockPosition;
|
|
3253
3273
|
private sectionMesh?;
|
|
3254
3274
|
private meshDirty;
|
|
3275
|
+
private meshGeneration;
|
|
3255
3276
|
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined, sectionModels?: SectionModels | undefined);
|
|
3256
3277
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
3257
3278
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3266,12 +3287,24 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3266
3287
|
* Places a block at integer chunk-local coordinates from 0 to 15.
|
|
3267
3288
|
*/
|
|
3268
3289
|
setBlockInChunkAt(pos: Vector3, block?: Block, worldPos?: Vector3, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined): Promise<Maybe<BlockInfo<SectionMeshing>>>;
|
|
3290
|
+
/** Places cells in input order and returns changed world positions without refreshing neighbors. */
|
|
3291
|
+
placeBlocks(blocks: readonly {
|
|
3292
|
+
index: number;
|
|
3293
|
+
block: Maybe<Block>;
|
|
3294
|
+
}[]): Promise<Vector3[]>;
|
|
3269
3295
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3270
3296
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
3271
3297
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3298
|
+
/** Reports whether a cell has a visible render object or section entry. */
|
|
3299
|
+
isBlockVisibleIndex(index: number): boolean;
|
|
3272
3300
|
isOccludingAt(pos: Vector3): boolean;
|
|
3301
|
+
/** Reports whether a visible cell hides neighboring cube faces. */
|
|
3302
|
+
isOccludingIndex(index: number): boolean;
|
|
3273
3303
|
setCullMaskAt(pos: Vector3, mask: number): Promise<void>;
|
|
3274
|
-
|
|
3304
|
+
/** Updates hidden faces for a cell's section entry or individual render object. */
|
|
3305
|
+
setCullMaskIndex(index: number, mask: number): Promise<void>;
|
|
3306
|
+
/** Rebuilds visible section geometry and discards results superseded by another rebuild or clear. */
|
|
3307
|
+
rebuildSectionMesh(): Promise<void>;
|
|
3275
3308
|
/** Removes stored blocks and their render objects, then notifies the owning world of changed positions. */
|
|
3276
3309
|
clear(onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined): Promise<void>;
|
|
3277
3310
|
dispose(): Promise<void>;
|
|
@@ -3317,11 +3350,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
3317
3350
|
* Places a structure's blocks at their stored positions, then refreshes neighboring faces.
|
|
3318
3351
|
* Entity NBT is retained by the structure but is not rendered.
|
|
3319
3352
|
*
|
|
3320
|
-
* @param useBatches -
|
|
3353
|
+
* @param useBatches - Yields between chunks by default. Set to `false` for sequential placement.
|
|
3321
3354
|
* @param executor - Optional queue for batched placement. The caller remains responsible for stopping it.
|
|
3322
3355
|
*/
|
|
3323
3356
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
3324
3357
|
private placeBlocks;
|
|
3358
|
+
private placeChunkGroups;
|
|
3325
3359
|
/** Replaces one chunk column's blocks. Entity NBT remains available on the parsed chunk. */
|
|
3326
3360
|
placeChunk(chunk: AnvilChunk, executor?: BatchedExecutor): Promise<void>;
|
|
3327
3361
|
/**
|
|
@@ -3351,6 +3385,70 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
3351
3385
|
maxAtlasSize?: number;
|
|
3352
3386
|
}
|
|
3353
3387
|
|
|
3388
|
+
/** One cube template with four vertices per face in `CUBE_FACES` order. */
|
|
3389
|
+
interface SectionTemplateData {
|
|
3390
|
+
positions: Float32Array;
|
|
3391
|
+
normals: Float32Array;
|
|
3392
|
+
uvs: Float32Array;
|
|
3393
|
+
uvBounds: Float32Array;
|
|
3394
|
+
colors: Float32Array;
|
|
3395
|
+
indices: Uint16Array;
|
|
3396
|
+
cullFaces: Uint8Array;
|
|
3397
|
+
atlas: number;
|
|
3398
|
+
}
|
|
3399
|
+
/** The pixel dimensions of a template atlas. */
|
|
3400
|
+
interface SectionAtlasSize {
|
|
3401
|
+
width: number;
|
|
3402
|
+
height: number;
|
|
3403
|
+
}
|
|
3404
|
+
/** Section placements and their shared cube templates, ready for geometry building. */
|
|
3405
|
+
interface SectionGeometryInput {
|
|
3406
|
+
count: number;
|
|
3407
|
+
indices: Uint16Array;
|
|
3408
|
+
templates: Uint16Array;
|
|
3409
|
+
cullMasks: Uint8Array;
|
|
3410
|
+
templateData: SectionTemplateData[];
|
|
3411
|
+
atlases: SectionAtlasSize[];
|
|
3412
|
+
maxAtlasSize: number;
|
|
3413
|
+
}
|
|
3414
|
+
/** Merged cube faces and source-atlas placements for one atlas page. */
|
|
3415
|
+
interface SectionGeometryPage {
|
|
3416
|
+
width: number;
|
|
3417
|
+
height: number;
|
|
3418
|
+
placements: {
|
|
3419
|
+
atlas: number;
|
|
3420
|
+
x: number;
|
|
3421
|
+
y: number;
|
|
3422
|
+
}[];
|
|
3423
|
+
positions: Float32Array;
|
|
3424
|
+
normals: Float32Array;
|
|
3425
|
+
uvs: Float32Array;
|
|
3426
|
+
uvBounds: Float32Array;
|
|
3427
|
+
colors: Float32Array;
|
|
3428
|
+
indices: Uint32Array;
|
|
3429
|
+
}
|
|
3430
|
+
/** Builds section-local geometry from visible cube faces, with bounded atlas pages. */
|
|
3431
|
+
declare function buildSectionGeometry(input: SectionGeometryInput): SectionGeometryPage[];
|
|
3432
|
+
/** Returns the buffers behind each page's typed arrays for transfer to another thread. */
|
|
3433
|
+
declare function sectionGeometryTransferables(pages: readonly SectionGeometryPage[]): ArrayBuffer[];
|
|
3434
|
+
|
|
3435
|
+
/** Runs section geometry builds in the environment's shared worker. */
|
|
3436
|
+
declare class SectionWorker {
|
|
3437
|
+
private worker;
|
|
3438
|
+
private static initialized;
|
|
3439
|
+
private static instance;
|
|
3440
|
+
private nextId;
|
|
3441
|
+
private readonly pending;
|
|
3442
|
+
private constructor();
|
|
3443
|
+
/** The shared worker, or undefined when the environment has none or a previous worker failed. */
|
|
3444
|
+
static shared(): SectionWorker | undefined;
|
|
3445
|
+
/** Builds geometry without transferring the input buffers away from the caller. */
|
|
3446
|
+
build(input: SectionGeometryInput): Promise<SectionGeometryPage[]>;
|
|
3447
|
+
/** Rejects pending builds, terminates the worker, and makes shared() return undefined. */
|
|
3448
|
+
terminate(): void;
|
|
3449
|
+
private fail;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3354
3452
|
interface WorldStreamerOptions {
|
|
3355
3453
|
/** Loads a square of chunk columns around the center. Integer from 0 to 32; defaults to 2. */
|
|
3356
3454
|
loadRadius?: number;
|
|
@@ -3457,4 +3555,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
3457
3555
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
3458
3556
|
}
|
|
3459
3557
|
|
|
3460
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, type AnvilRegionReader, AnvilWorldSource, type AnvilWorldSourceOptions, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, type BannerPattern, type BannerPatternDraw, BannerPatterns, 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, DYE_COLORS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type DyeColor, 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, type VideoExportOptions, VideoExporter, type WorldChunkSource, WorldStreamer, type WorldStreamerOptions, 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 };
|
|
3558
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, type AnvilRegionReader, AnvilWorldSource, type AnvilWorldSourceOptions, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, type BannerPattern, type BannerPatternDraw, BannerPatterns, 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, DYE_COLORS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type DyeColor, 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, type SectionAtlasSize, type SectionGeometryInput, type SectionGeometryPage, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type SectionTemplateData, SectionWorker, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, SpongeSchematicParser, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, type VideoExportOptions, VideoExporter, type WorldChunkSource, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildSectionGeometry, 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, sectionGeometryTransferables, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas, yieldToEventLoop };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ interface EnvProvider {
|
|
|
106
106
|
/** Read width/height out of encoded image bytes without fully decoding them. */
|
|
107
107
|
imageSize(data: Uint8Array): ImageSizeInfo;
|
|
108
108
|
openCache(name: string, version: number): PersistentCache;
|
|
109
|
+
/** Optional worker support; returns undefined where unavailable. Only the browser ESM build ships worker files. */
|
|
110
|
+
createWorker?(name: "section"): Worker | undefined;
|
|
109
111
|
}
|
|
110
112
|
/**
|
|
111
113
|
* Registry holding the active {@link EnvProvider}.
|
|
@@ -767,6 +769,8 @@ declare function toRadians(degrees: number): number;
|
|
|
767
769
|
declare function toDegrees(radians: number): number;
|
|
768
770
|
/** Resolves after a delay in milliseconds. */
|
|
769
771
|
declare function sleep(timeout: number): Promise<void>;
|
|
772
|
+
/** Yields to the next macrotask without timer clamping when the platform supports it. */
|
|
773
|
+
declare function yieldToEventLoop(): Promise<void>;
|
|
770
774
|
/** Reduces an angle modulo 360, retaining a negative sign for negative inputs. */
|
|
771
775
|
declare function clampRotationDegrees(deg: number): number;
|
|
772
776
|
declare function isVector3(obj: any): obj is Vector3;
|
|
@@ -2062,6 +2066,16 @@ interface SchematicParserOptions {
|
|
|
2062
2066
|
lenient?: boolean;
|
|
2063
2067
|
}
|
|
2064
2068
|
|
|
2069
|
+
/** Converts Sponge v2/v3 `.schem` NBT into blocks and preserved entity data. */
|
|
2070
|
+
declare class SpongeSchematicParser {
|
|
2071
|
+
/**
|
|
2072
|
+
* Parses decoded NBT with a local block palette, omitting air blocks.
|
|
2073
|
+
* Applies Offset to block and entity positions; size remains the source dimensions.
|
|
2074
|
+
* Biomes and metadata are not imported, and DataVersion does not trigger migration.
|
|
2075
|
+
*/
|
|
2076
|
+
static parse(nbt: NBT): Promise<MultiBlockStructure>;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2065
2079
|
/** Converts Java structure NBT into blocks and preserved entity data for world placement. */
|
|
2066
2080
|
declare class StructureParser {
|
|
2067
2081
|
/**
|
|
@@ -3112,6 +3126,8 @@ declare class ChunkData {
|
|
|
3112
3126
|
set(index: number, block?: Block): void;
|
|
3113
3127
|
clear(): void;
|
|
3114
3128
|
static isAir(block: Maybe<Block>): boolean;
|
|
3129
|
+
/** Identifies a normalized block type and its sorted properties, excluding per-cell NBT. */
|
|
3130
|
+
static paletteKey(block: Block): string;
|
|
3115
3131
|
private static copyBlock;
|
|
3116
3132
|
private static validateIndex;
|
|
3117
3133
|
}
|
|
@@ -3217,6 +3233,9 @@ declare class SectionMesh extends Group {
|
|
|
3217
3233
|
private readonly ownedMeshes;
|
|
3218
3234
|
/** Builds section-local meshes from visible cube faces. `maxAtlasSize` limits each atlas dimension in pixels. */
|
|
3219
3235
|
static build(entries: readonly SectionMeshEntry[], maxAtlasSize?: number): SectionMesh;
|
|
3236
|
+
/** Builds section-local meshes in a browser worker when available, with synchronous fallback. */
|
|
3237
|
+
static buildAsync(entries: readonly SectionMeshEntry[], maxAtlasSize?: number): Promise<SectionMesh>;
|
|
3238
|
+
private static fromPages;
|
|
3220
3239
|
dispose(): void;
|
|
3221
3240
|
}
|
|
3222
3241
|
|
|
@@ -3250,8 +3269,10 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3250
3269
|
private readonly renderedBlocks;
|
|
3251
3270
|
private readonly sectionBlocks;
|
|
3252
3271
|
private readonly hiddenBlocks;
|
|
3272
|
+
private readonly blockPosition;
|
|
3253
3273
|
private sectionMesh?;
|
|
3254
3274
|
private meshDirty;
|
|
3275
|
+
private meshGeneration;
|
|
3255
3276
|
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined, sectionModels?: SectionModels | undefined);
|
|
3256
3277
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
3257
3278
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3266,12 +3287,24 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3266
3287
|
* Places a block at integer chunk-local coordinates from 0 to 15.
|
|
3267
3288
|
*/
|
|
3268
3289
|
setBlockInChunkAt(pos: Vector3, block?: Block, worldPos?: Vector3, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined): Promise<Maybe<BlockInfo<SectionMeshing>>>;
|
|
3290
|
+
/** Places cells in input order and returns changed world positions without refreshing neighbors. */
|
|
3291
|
+
placeBlocks(blocks: readonly {
|
|
3292
|
+
index: number;
|
|
3293
|
+
block: Maybe<Block>;
|
|
3294
|
+
}[]): Promise<Vector3[]>;
|
|
3269
3295
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3270
3296
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
3271
3297
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3298
|
+
/** Reports whether a cell has a visible render object or section entry. */
|
|
3299
|
+
isBlockVisibleIndex(index: number): boolean;
|
|
3272
3300
|
isOccludingAt(pos: Vector3): boolean;
|
|
3301
|
+
/** Reports whether a visible cell hides neighboring cube faces. */
|
|
3302
|
+
isOccludingIndex(index: number): boolean;
|
|
3273
3303
|
setCullMaskAt(pos: Vector3, mask: number): Promise<void>;
|
|
3274
|
-
|
|
3304
|
+
/** Updates hidden faces for a cell's section entry or individual render object. */
|
|
3305
|
+
setCullMaskIndex(index: number, mask: number): Promise<void>;
|
|
3306
|
+
/** Rebuilds visible section geometry and discards results superseded by another rebuild or clear. */
|
|
3307
|
+
rebuildSectionMesh(): Promise<void>;
|
|
3275
3308
|
/** Removes stored blocks and their render objects, then notifies the owning world of changed positions. */
|
|
3276
3309
|
clear(onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined): Promise<void>;
|
|
3277
3310
|
dispose(): Promise<void>;
|
|
@@ -3317,11 +3350,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
3317
3350
|
* Places a structure's blocks at their stored positions, then refreshes neighboring faces.
|
|
3318
3351
|
* Entity NBT is retained by the structure but is not rendered.
|
|
3319
3352
|
*
|
|
3320
|
-
* @param useBatches -
|
|
3353
|
+
* @param useBatches - Yields between chunks by default. Set to `false` for sequential placement.
|
|
3321
3354
|
* @param executor - Optional queue for batched placement. The caller remains responsible for stopping it.
|
|
3322
3355
|
*/
|
|
3323
3356
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
3324
3357
|
private placeBlocks;
|
|
3358
|
+
private placeChunkGroups;
|
|
3325
3359
|
/** Replaces one chunk column's blocks. Entity NBT remains available on the parsed chunk. */
|
|
3326
3360
|
placeChunk(chunk: AnvilChunk, executor?: BatchedExecutor): Promise<void>;
|
|
3327
3361
|
/**
|
|
@@ -3351,6 +3385,70 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
3351
3385
|
maxAtlasSize?: number;
|
|
3352
3386
|
}
|
|
3353
3387
|
|
|
3388
|
+
/** One cube template with four vertices per face in `CUBE_FACES` order. */
|
|
3389
|
+
interface SectionTemplateData {
|
|
3390
|
+
positions: Float32Array;
|
|
3391
|
+
normals: Float32Array;
|
|
3392
|
+
uvs: Float32Array;
|
|
3393
|
+
uvBounds: Float32Array;
|
|
3394
|
+
colors: Float32Array;
|
|
3395
|
+
indices: Uint16Array;
|
|
3396
|
+
cullFaces: Uint8Array;
|
|
3397
|
+
atlas: number;
|
|
3398
|
+
}
|
|
3399
|
+
/** The pixel dimensions of a template atlas. */
|
|
3400
|
+
interface SectionAtlasSize {
|
|
3401
|
+
width: number;
|
|
3402
|
+
height: number;
|
|
3403
|
+
}
|
|
3404
|
+
/** Section placements and their shared cube templates, ready for geometry building. */
|
|
3405
|
+
interface SectionGeometryInput {
|
|
3406
|
+
count: number;
|
|
3407
|
+
indices: Uint16Array;
|
|
3408
|
+
templates: Uint16Array;
|
|
3409
|
+
cullMasks: Uint8Array;
|
|
3410
|
+
templateData: SectionTemplateData[];
|
|
3411
|
+
atlases: SectionAtlasSize[];
|
|
3412
|
+
maxAtlasSize: number;
|
|
3413
|
+
}
|
|
3414
|
+
/** Merged cube faces and source-atlas placements for one atlas page. */
|
|
3415
|
+
interface SectionGeometryPage {
|
|
3416
|
+
width: number;
|
|
3417
|
+
height: number;
|
|
3418
|
+
placements: {
|
|
3419
|
+
atlas: number;
|
|
3420
|
+
x: number;
|
|
3421
|
+
y: number;
|
|
3422
|
+
}[];
|
|
3423
|
+
positions: Float32Array;
|
|
3424
|
+
normals: Float32Array;
|
|
3425
|
+
uvs: Float32Array;
|
|
3426
|
+
uvBounds: Float32Array;
|
|
3427
|
+
colors: Float32Array;
|
|
3428
|
+
indices: Uint32Array;
|
|
3429
|
+
}
|
|
3430
|
+
/** Builds section-local geometry from visible cube faces, with bounded atlas pages. */
|
|
3431
|
+
declare function buildSectionGeometry(input: SectionGeometryInput): SectionGeometryPage[];
|
|
3432
|
+
/** Returns the buffers behind each page's typed arrays for transfer to another thread. */
|
|
3433
|
+
declare function sectionGeometryTransferables(pages: readonly SectionGeometryPage[]): ArrayBuffer[];
|
|
3434
|
+
|
|
3435
|
+
/** Runs section geometry builds in the environment's shared worker. */
|
|
3436
|
+
declare class SectionWorker {
|
|
3437
|
+
private worker;
|
|
3438
|
+
private static initialized;
|
|
3439
|
+
private static instance;
|
|
3440
|
+
private nextId;
|
|
3441
|
+
private readonly pending;
|
|
3442
|
+
private constructor();
|
|
3443
|
+
/** The shared worker, or undefined when the environment has none or a previous worker failed. */
|
|
3444
|
+
static shared(): SectionWorker | undefined;
|
|
3445
|
+
/** Builds geometry without transferring the input buffers away from the caller. */
|
|
3446
|
+
build(input: SectionGeometryInput): Promise<SectionGeometryPage[]>;
|
|
3447
|
+
/** Rejects pending builds, terminates the worker, and makes shared() return undefined. */
|
|
3448
|
+
terminate(): void;
|
|
3449
|
+
private fail;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3354
3452
|
interface WorldStreamerOptions {
|
|
3355
3453
|
/** Loads a square of chunk columns around the center. Integer from 0 to 32; defaults to 2. */
|
|
3356
3454
|
loadRadius?: number;
|
|
@@ -3457,4 +3555,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
3457
3555
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
3458
3556
|
}
|
|
3459
3557
|
|
|
3460
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, type AnvilRegionReader, AnvilWorldSource, type AnvilWorldSourceOptions, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, type BannerPattern, type BannerPatternDraw, BannerPatterns, 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, DYE_COLORS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type DyeColor, 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, type VideoExportOptions, VideoExporter, type WorldChunkSource, WorldStreamer, type WorldStreamerOptions, 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 };
|
|
3558
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, type AnvilRegionReader, AnvilWorldSource, type AnvilWorldSourceOptions, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, type BannerPattern, type BannerPatternDraw, BannerPatterns, 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, DYE_COLORS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type DyeColor, 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, type SectionAtlasSize, type SectionGeometryInput, type SectionGeometryPage, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type SectionTemplateData, SectionWorker, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, SpongeSchematicParser, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, type VideoExportOptions, VideoExporter, type WorldChunkSource, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildSectionGeometry, 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, sectionGeometryTransferables, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas, yieldToEventLoop };
|