minerender 2.1.0-alpha.127 → 2.1.0-alpha.129
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 +77 -5
- package/dist/browser/index.d.ts +77 -5
- package/dist/browser/index.js +653 -287
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +653 -287
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/section.worker.js +7 -5
- package/dist/browser/section.worker.js.map +1 -1
- package/dist/browser/section.worker.mjs +7 -5
- package/dist/browser/section.worker.mjs.map +1 -1
- package/dist/bundle.js +665 -293
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +77 -5
- package/dist/node/index.d.ts +77 -5
- package/dist/node/index.js +656 -287
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +655 -287
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.mts
CHANGED
|
@@ -1293,6 +1293,20 @@ declare class Fonts {
|
|
|
1293
1293
|
private static bitmap;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
type RenameKind = "blocks" | "items" | "entities";
|
|
1297
|
+
/** Maps IDs that older Minecraft versions used to the IDs the selected version uses. */
|
|
1298
|
+
declare class Renames {
|
|
1299
|
+
/** Loads the selected version's rename table, or `undefined` when its published data has none. */
|
|
1300
|
+
static get(root?: string): Promise<Maybe<MineRenderDatasets["renames"]>>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Returns the ID that replaced `id`, or `undefined` when `id` keeps its meaning.
|
|
1303
|
+
* Without a data version, an ID that the selected version still registers keeps its meaning.
|
|
1304
|
+
*/
|
|
1305
|
+
static resolve(kind: RenameKind, id: string, dataVersion?: number, root?: string): Promise<Maybe<string>>;
|
|
1306
|
+
/** Returns a copy of `key` for the replacement ID, or `undefined` when the ID keeps its meaning. */
|
|
1307
|
+
static key(kind: RenameKind, key: AssetKey): Promise<Maybe<AssetKey>>;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1296
1310
|
interface MineRenderDatasets {
|
|
1297
1311
|
itemDefaults: Record<string, Record<string, unknown>>;
|
|
1298
1312
|
potionColors: {
|
|
@@ -1335,6 +1349,16 @@ interface MineRenderDatasets {
|
|
|
1335
1349
|
legacyBlocks: {
|
|
1336
1350
|
blocks: Record<string, string>;
|
|
1337
1351
|
};
|
|
1352
|
+
renames: {
|
|
1353
|
+
format: "data-fixer-renames";
|
|
1354
|
+
baseDataVersion: number;
|
|
1355
|
+
} & Record<RenameKind, Record<string, {
|
|
1356
|
+
registered: boolean;
|
|
1357
|
+
ranges: {
|
|
1358
|
+
before: number;
|
|
1359
|
+
to: string;
|
|
1360
|
+
}[];
|
|
1361
|
+
}>>;
|
|
1338
1362
|
}
|
|
1339
1363
|
interface MineRenderDataManifest {
|
|
1340
1364
|
schemaVersion: 1;
|
|
@@ -2627,6 +2651,9 @@ interface BedrockGeometryFile {
|
|
|
2627
2651
|
|
|
2628
2652
|
/** Shared in-memory caches for loaded assets and render resources. Persistent stores are managed separately. */
|
|
2629
2653
|
declare class Caching {
|
|
2654
|
+
private static _generation;
|
|
2655
|
+
/** Changes when shared assets are cleared, so derived caches can discard their old values. */
|
|
2656
|
+
static get generation(): number;
|
|
2630
2657
|
static readonly rawImageCache: AsyncLoadingCache<CacheKey, ImageInfo>;
|
|
2631
2658
|
static readonly imageDataCache: AsyncLoadingCache<CacheKey, ImageData>;
|
|
2632
2659
|
static readonly canvasImageDataCache: AsyncLoadingCache<CacheKey, ExtractableImageData>;
|
|
@@ -3764,6 +3791,7 @@ interface SectionTemplateData {
|
|
|
3764
3791
|
colors: Float32Array;
|
|
3765
3792
|
indices: Uint16Array;
|
|
3766
3793
|
cullFaces: Uint8Array;
|
|
3794
|
+
biomeTint?: Uint8Array;
|
|
3767
3795
|
atlas: number;
|
|
3768
3796
|
layer: number;
|
|
3769
3797
|
ambientOcclusion?: boolean;
|
|
@@ -3796,6 +3824,8 @@ interface SectionGeometryInput {
|
|
|
3796
3824
|
indices: Uint16Array;
|
|
3797
3825
|
templates: Uint16Array;
|
|
3798
3826
|
cullMasks: Uint8Array;
|
|
3827
|
+
/** Linear RGB per placement; three NaN values preserve the template's colors. */
|
|
3828
|
+
biomeTints?: Float32Array;
|
|
3799
3829
|
templateData: SectionTemplateData[];
|
|
3800
3830
|
atlases: SectionAtlasSize[];
|
|
3801
3831
|
maxAtlasSize: number;
|
|
@@ -3836,6 +3866,8 @@ interface SectionMeshTemplate {
|
|
|
3836
3866
|
geometry: BufferGeometry;
|
|
3837
3867
|
atlas: TextureAtlas;
|
|
3838
3868
|
cullFaces: Uint8Array;
|
|
3869
|
+
/** Quads that accept a placement's biome tint, stored as zero or one. */
|
|
3870
|
+
biomeTint?: Uint8Array;
|
|
3839
3871
|
occludes: boolean;
|
|
3840
3872
|
/** Whether the model permits corner shading from neighboring full cubes. */
|
|
3841
3873
|
ambientOcclusion?: boolean;
|
|
@@ -3846,6 +3878,8 @@ interface SectionMeshEntry {
|
|
|
3846
3878
|
index: number;
|
|
3847
3879
|
template: SectionMeshTemplate;
|
|
3848
3880
|
cullMask: number;
|
|
3881
|
+
/** Linear RGB replacing automatic biome colors on eligible quads. */
|
|
3882
|
+
biomeTint?: readonly [number, number, number];
|
|
3849
3883
|
}
|
|
3850
3884
|
/** Fluid cells for one section and the shared atlases of the kinds present. */
|
|
3851
3885
|
interface SectionFluids {
|
|
@@ -3879,9 +3913,10 @@ declare class SectionModels {
|
|
|
3879
3913
|
constructor(maxAtlasSize?: number);
|
|
3880
3914
|
/** Returns templates for the matched parts, or `undefined` when the block needs an individual render object. */
|
|
3881
3915
|
get(blockState: BlockState, properties?: BlockStateProperties, position?: Readonly<TripleArray>, biome?: string): Promise<SectionMeshTemplate[] | undefined>;
|
|
3882
|
-
/** Resolves
|
|
3883
|
-
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>)): Promise<{
|
|
3916
|
+
/** Resolves shared templates; dynamic biome tints are supplied on section placements instead of cached geometry. */
|
|
3917
|
+
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>), dynamicBiomeTint?: boolean): Promise<{
|
|
3884
3918
|
pick(position?: Readonly<TripleArray>): SectionMeshTemplate[];
|
|
3919
|
+
biomeTint?: boolean;
|
|
3885
3920
|
} | undefined>;
|
|
3886
3921
|
private state;
|
|
3887
3922
|
/** Returns the shared still/flow atlas used by per-block fluid objects. */
|
|
@@ -3892,6 +3927,20 @@ declare class SectionModels {
|
|
|
3892
3927
|
clear(): void;
|
|
3893
3928
|
}
|
|
3894
3929
|
|
|
3930
|
+
/** Caches horizontal color averages for saved quart-resolution biome samples. */
|
|
3931
|
+
declare class BiomeBlend {
|
|
3932
|
+
private readonly biomeAt;
|
|
3933
|
+
private readonly tiles;
|
|
3934
|
+
private generation;
|
|
3935
|
+
private _radius;
|
|
3936
|
+
constructor(biomeAt: (x: number, y: number, z: number) => string | undefined, radius: number);
|
|
3937
|
+
get radius(): number;
|
|
3938
|
+
clear(): void;
|
|
3939
|
+
invalidateColumn(x: number, z: number): void;
|
|
3940
|
+
getColor(kind: BiomeColorKind, origin: AssetKey | undefined, position: Readonly<TripleArray>): Promise<number | undefined>;
|
|
3941
|
+
private buildTile;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3895
3944
|
/** The nearest rendered block triangle hit by a world raycast. */
|
|
3896
3945
|
interface WorldBlockIntersection {
|
|
3897
3946
|
/** Integer world block coordinates of the geometry's owner. */
|
|
@@ -3922,6 +3971,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3922
3971
|
private readonly lightAt?;
|
|
3923
3972
|
private readonly onLightCleared?;
|
|
3924
3973
|
private readonly ambientLight;
|
|
3974
|
+
private readonly biomeBlend?;
|
|
3925
3975
|
readonly scene: MineRenderScene;
|
|
3926
3976
|
readonly x: number;
|
|
3927
3977
|
readonly y: number;
|
|
@@ -3939,7 +3989,9 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3939
3989
|
private meshDirty;
|
|
3940
3990
|
private meshGeneration;
|
|
3941
3991
|
private ambientOcclusionCells?;
|
|
3942
|
-
|
|
3992
|
+
private readonly blockChanges;
|
|
3993
|
+
private biomeChange?;
|
|
3994
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined, sectionModels?: SectionModels | undefined, neighborCell?: ((x: number, y: number, z: number) => number) | undefined, biomeAt?: ((x: number, y: number, z: number) => Maybe<string>) | undefined, onBiomesChanged?: ((biomes?: readonly string[]) => Promise<void>) | undefined, lightAt?: ((x: number, y: number, z: number) => number) | undefined, onLightCleared?: (() => Promise<void>) | undefined, ambientLight?: number, biomeBlend?: (() => BiomeBlend | undefined) | undefined);
|
|
3943
3995
|
/** Finds the nearest owned block hit across sections, testing each shared mesh once. */
|
|
3944
3996
|
static raycast<SectionMeshing extends boolean>(chunks: Iterable<Chunk<SectionMeshing>>, raycaster: Raycaster): WorldBlockIntersection | undefined;
|
|
3945
3997
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3952,7 +4004,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3952
4004
|
/** Copies 64 biome IDs in x + z * 4 + y * 16 order and refreshes placed blocks. Omit the array to clear biome data. */
|
|
3953
4005
|
setBiomes(biomes?: readonly string[]): Promise<void>;
|
|
3954
4006
|
/** Rebuilds biome-tinted blocks while preserving hidden blocks and unrelated render objects. */
|
|
3955
|
-
refreshBiomes(
|
|
4007
|
+
refreshBiomes(columns?: readonly {
|
|
4008
|
+
x: number;
|
|
4009
|
+
z: number;
|
|
4010
|
+
}[]): Promise<void>;
|
|
4011
|
+
private refreshBiomeBlocks;
|
|
3956
4012
|
/**
|
|
3957
4013
|
* Places a block at integer world block coordinates. Pass `undefined` to remove it.
|
|
3958
4014
|
*/
|
|
@@ -3968,8 +4024,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3968
4024
|
index: number;
|
|
3969
4025
|
block: Maybe<Block>;
|
|
3970
4026
|
}[]): Promise<Vector3[]>;
|
|
4027
|
+
private changeBlocks;
|
|
4028
|
+
private replaceBlocks;
|
|
3971
4029
|
/** Replaces every cell from parsed section data. The caller refreshes neighbor culling. */
|
|
3972
4030
|
placeSection(data: ChunkData): Promise<void>;
|
|
4031
|
+
private replaceSection;
|
|
3973
4032
|
private positionAt;
|
|
3974
4033
|
/** Refreshes saved lighting after adjacent columns load or unload, including columns with only light data. */
|
|
3975
4034
|
refreshLight(indices?: Iterable<number>): Promise<void>;
|
|
@@ -3981,6 +4040,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3981
4040
|
private setWaterTint;
|
|
3982
4041
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3983
4042
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
4043
|
+
private setBlockVisibility;
|
|
3984
4044
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3985
4045
|
/** Reports whether a cell has a visible render object or section entry. */
|
|
3986
4046
|
isBlockVisibleIndex(index: number): boolean;
|
|
@@ -4045,6 +4105,10 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4045
4105
|
private readonly ambientLight;
|
|
4046
4106
|
private _ambientOcclusion;
|
|
4047
4107
|
private ambientOcclusionPending;
|
|
4108
|
+
private _biomeBlendRadius;
|
|
4109
|
+
private biomeBlend?;
|
|
4110
|
+
private readonly pendingBiomes;
|
|
4111
|
+
private biomeRefreshing?;
|
|
4048
4112
|
private readonly sectionModels?;
|
|
4049
4113
|
private readonly entities?;
|
|
4050
4114
|
private readonly pendingCulling;
|
|
@@ -4065,6 +4129,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4065
4129
|
get ambientOcclusion(): boolean;
|
|
4066
4130
|
/** Rebuilds loaded blocks with or without corner shading. Block data and saved lighting are preserved. */
|
|
4067
4131
|
setAmbientOcclusion(enabled: boolean): Promise<void>;
|
|
4132
|
+
/** Horizontal biome-color sampling radius, from 0 to 7 blocks. Zero disables blending. */
|
|
4133
|
+
get biomeBlendRadius(): number;
|
|
4134
|
+
/** Refreshes loaded grass, foliage, and water colors without reloading their source chunks. */
|
|
4135
|
+
setBiomeBlendRadius(radius: number): Promise<void>;
|
|
4136
|
+
private markBiomesChanged;
|
|
4137
|
+
private refreshBiomes;
|
|
4068
4138
|
/** Returns a placed block at world block coordinates, or `undefined` for an empty position. */
|
|
4069
4139
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
4070
4140
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -4140,6 +4210,8 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
4140
4210
|
ambientLight?: number;
|
|
4141
4211
|
/** Bake corner shading from neighboring opaque full cubes. Defaults to false; no per-frame shading pass is added. Requires `sectionMeshing`. */
|
|
4142
4212
|
ambientOcclusion?: boolean;
|
|
4213
|
+
/** Average neighboring biome colors within this horizontal radius, from 0 to 7 blocks. Defaults to 0 (off). Requires `sectionMeshing`. */
|
|
4214
|
+
biomeBlendRadius?: number;
|
|
4143
4215
|
/** Maximum width and height of each section atlas page, in pixels. */
|
|
4144
4216
|
maxAtlasSize?: number;
|
|
4145
4217
|
}
|
|
@@ -4301,4 +4373,4 @@ declare class NodeRenderer extends Renderer {
|
|
|
4301
4373
|
dispose(): void;
|
|
4302
4374
|
}
|
|
4303
4375
|
|
|
4304
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, type AnvilEntityChunk, type AnvilExternalChunkReader, type AnvilParseOptions, 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 Biome, type BiomeColorKind, Biomes, 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 ControlsMode, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, DYE_COLORS, type DebugOptions, type DecoratedPotSide, DecoratedPots, 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 FluidQuads, type FluidRules, type FluidSample, type FluidSampler, type FlyAction, FlyControls, type FlyControlsEventMap, 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, ItemDefaults, ItemGlint, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, LitematicaParser, type LitematicaRegion, type LitematicaStructure, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderData, type MineRenderDataManifest, type MineRenderDatasets, 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, type NodeImageOptions, NodeRenderer, type NodeRendererOptions, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, PlayerHeadTextures, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererControls, type RendererFrame, type RendererOptions, type RendererSurface, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResolvedMineRenderData, type ResponseParser, SCENE_DOCUMENT_MAX_BYTES, SKIN_PARTS, type SavedLightSample, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneItemContext, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, type SectionAtlasSize, type SectionFluidInput, type SectionFluidKind, type SectionFluids, type SectionGeometryInput, type SectionGeometryPage, type SectionLightData, 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 WorldBlockIntersection, type WorldChunkSource, type WorldEntityIntersection, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildFluidQuads, buildSectionGeometry, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, copySectionLight, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, decodeSceneDocument, encodeSceneDocument, entityAnimationTime, estimateBytesUsed, fluidKindOf, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isFlyControls, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isResourceLocation, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, registerNodeEnv, resolveBlockFluidState, resolveLegacyBlock, resolveLegacyBlockState, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, sampleSectionLight, sectionGeometryTransferables, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas, yieldToEventLoop };
|
|
4376
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, type AnvilEntityChunk, type AnvilExternalChunkReader, type AnvilParseOptions, 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 Biome, type BiomeColorKind, Biomes, 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 ControlsMode, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, DYE_COLORS, type DebugOptions, type DecoratedPotSide, DecoratedPots, 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 FluidQuads, type FluidRules, type FluidSample, type FluidSampler, type FlyAction, FlyControls, type FlyControlsEventMap, 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, ItemDefaults, ItemGlint, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, LitematicaParser, type LitematicaRegion, type LitematicaStructure, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderData, type MineRenderDataManifest, type MineRenderDatasets, 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, type NodeImageOptions, NodeRenderer, type NodeRendererOptions, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, PlayerHeadTextures, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenameKind, Renames, type RenderOptions, Renderer, type RendererControls, type RendererFrame, type RendererOptions, type RendererSurface, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResolvedMineRenderData, type ResponseParser, SCENE_DOCUMENT_MAX_BYTES, SKIN_PARTS, type SavedLightSample, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneItemContext, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, type SectionAtlasSize, type SectionFluidInput, type SectionFluidKind, type SectionFluids, type SectionGeometryInput, type SectionGeometryPage, type SectionLightData, 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 WorldBlockIntersection, type WorldChunkSource, type WorldEntityIntersection, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildFluidQuads, buildSectionGeometry, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, copySectionLight, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, decodeSceneDocument, encodeSceneDocument, entityAnimationTime, estimateBytesUsed, fluidKindOf, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isFlyControls, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isResourceLocation, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, registerNodeEnv, resolveBlockFluidState, resolveLegacyBlock, resolveLegacyBlockState, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, sampleSectionLight, 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
|
@@ -1293,6 +1293,20 @@ declare class Fonts {
|
|
|
1293
1293
|
private static bitmap;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
type RenameKind = "blocks" | "items" | "entities";
|
|
1297
|
+
/** Maps IDs that older Minecraft versions used to the IDs the selected version uses. */
|
|
1298
|
+
declare class Renames {
|
|
1299
|
+
/** Loads the selected version's rename table, or `undefined` when its published data has none. */
|
|
1300
|
+
static get(root?: string): Promise<Maybe<MineRenderDatasets["renames"]>>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Returns the ID that replaced `id`, or `undefined` when `id` keeps its meaning.
|
|
1303
|
+
* Without a data version, an ID that the selected version still registers keeps its meaning.
|
|
1304
|
+
*/
|
|
1305
|
+
static resolve(kind: RenameKind, id: string, dataVersion?: number, root?: string): Promise<Maybe<string>>;
|
|
1306
|
+
/** Returns a copy of `key` for the replacement ID, or `undefined` when the ID keeps its meaning. */
|
|
1307
|
+
static key(kind: RenameKind, key: AssetKey): Promise<Maybe<AssetKey>>;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1296
1310
|
interface MineRenderDatasets {
|
|
1297
1311
|
itemDefaults: Record<string, Record<string, unknown>>;
|
|
1298
1312
|
potionColors: {
|
|
@@ -1335,6 +1349,16 @@ interface MineRenderDatasets {
|
|
|
1335
1349
|
legacyBlocks: {
|
|
1336
1350
|
blocks: Record<string, string>;
|
|
1337
1351
|
};
|
|
1352
|
+
renames: {
|
|
1353
|
+
format: "data-fixer-renames";
|
|
1354
|
+
baseDataVersion: number;
|
|
1355
|
+
} & Record<RenameKind, Record<string, {
|
|
1356
|
+
registered: boolean;
|
|
1357
|
+
ranges: {
|
|
1358
|
+
before: number;
|
|
1359
|
+
to: string;
|
|
1360
|
+
}[];
|
|
1361
|
+
}>>;
|
|
1338
1362
|
}
|
|
1339
1363
|
interface MineRenderDataManifest {
|
|
1340
1364
|
schemaVersion: 1;
|
|
@@ -2627,6 +2651,9 @@ interface BedrockGeometryFile {
|
|
|
2627
2651
|
|
|
2628
2652
|
/** Shared in-memory caches for loaded assets and render resources. Persistent stores are managed separately. */
|
|
2629
2653
|
declare class Caching {
|
|
2654
|
+
private static _generation;
|
|
2655
|
+
/** Changes when shared assets are cleared, so derived caches can discard their old values. */
|
|
2656
|
+
static get generation(): number;
|
|
2630
2657
|
static readonly rawImageCache: AsyncLoadingCache<CacheKey, ImageInfo>;
|
|
2631
2658
|
static readonly imageDataCache: AsyncLoadingCache<CacheKey, ImageData>;
|
|
2632
2659
|
static readonly canvasImageDataCache: AsyncLoadingCache<CacheKey, ExtractableImageData>;
|
|
@@ -3764,6 +3791,7 @@ interface SectionTemplateData {
|
|
|
3764
3791
|
colors: Float32Array;
|
|
3765
3792
|
indices: Uint16Array;
|
|
3766
3793
|
cullFaces: Uint8Array;
|
|
3794
|
+
biomeTint?: Uint8Array;
|
|
3767
3795
|
atlas: number;
|
|
3768
3796
|
layer: number;
|
|
3769
3797
|
ambientOcclusion?: boolean;
|
|
@@ -3796,6 +3824,8 @@ interface SectionGeometryInput {
|
|
|
3796
3824
|
indices: Uint16Array;
|
|
3797
3825
|
templates: Uint16Array;
|
|
3798
3826
|
cullMasks: Uint8Array;
|
|
3827
|
+
/** Linear RGB per placement; three NaN values preserve the template's colors. */
|
|
3828
|
+
biomeTints?: Float32Array;
|
|
3799
3829
|
templateData: SectionTemplateData[];
|
|
3800
3830
|
atlases: SectionAtlasSize[];
|
|
3801
3831
|
maxAtlasSize: number;
|
|
@@ -3836,6 +3866,8 @@ interface SectionMeshTemplate {
|
|
|
3836
3866
|
geometry: BufferGeometry;
|
|
3837
3867
|
atlas: TextureAtlas;
|
|
3838
3868
|
cullFaces: Uint8Array;
|
|
3869
|
+
/** Quads that accept a placement's biome tint, stored as zero or one. */
|
|
3870
|
+
biomeTint?: Uint8Array;
|
|
3839
3871
|
occludes: boolean;
|
|
3840
3872
|
/** Whether the model permits corner shading from neighboring full cubes. */
|
|
3841
3873
|
ambientOcclusion?: boolean;
|
|
@@ -3846,6 +3878,8 @@ interface SectionMeshEntry {
|
|
|
3846
3878
|
index: number;
|
|
3847
3879
|
template: SectionMeshTemplate;
|
|
3848
3880
|
cullMask: number;
|
|
3881
|
+
/** Linear RGB replacing automatic biome colors on eligible quads. */
|
|
3882
|
+
biomeTint?: readonly [number, number, number];
|
|
3849
3883
|
}
|
|
3850
3884
|
/** Fluid cells for one section and the shared atlases of the kinds present. */
|
|
3851
3885
|
interface SectionFluids {
|
|
@@ -3879,9 +3913,10 @@ declare class SectionModels {
|
|
|
3879
3913
|
constructor(maxAtlasSize?: number);
|
|
3880
3914
|
/** Returns templates for the matched parts, or `undefined` when the block needs an individual render object. */
|
|
3881
3915
|
get(blockState: BlockState, properties?: BlockStateProperties, position?: Readonly<TripleArray>, biome?: string): Promise<SectionMeshTemplate[] | undefined>;
|
|
3882
|
-
/** Resolves
|
|
3883
|
-
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>)): Promise<{
|
|
3916
|
+
/** Resolves shared templates; dynamic biome tints are supplied on section placements instead of cached geometry. */
|
|
3917
|
+
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>), dynamicBiomeTint?: boolean): Promise<{
|
|
3884
3918
|
pick(position?: Readonly<TripleArray>): SectionMeshTemplate[];
|
|
3919
|
+
biomeTint?: boolean;
|
|
3885
3920
|
} | undefined>;
|
|
3886
3921
|
private state;
|
|
3887
3922
|
/** Returns the shared still/flow atlas used by per-block fluid objects. */
|
|
@@ -3892,6 +3927,20 @@ declare class SectionModels {
|
|
|
3892
3927
|
clear(): void;
|
|
3893
3928
|
}
|
|
3894
3929
|
|
|
3930
|
+
/** Caches horizontal color averages for saved quart-resolution biome samples. */
|
|
3931
|
+
declare class BiomeBlend {
|
|
3932
|
+
private readonly biomeAt;
|
|
3933
|
+
private readonly tiles;
|
|
3934
|
+
private generation;
|
|
3935
|
+
private _radius;
|
|
3936
|
+
constructor(biomeAt: (x: number, y: number, z: number) => string | undefined, radius: number);
|
|
3937
|
+
get radius(): number;
|
|
3938
|
+
clear(): void;
|
|
3939
|
+
invalidateColumn(x: number, z: number): void;
|
|
3940
|
+
getColor(kind: BiomeColorKind, origin: AssetKey | undefined, position: Readonly<TripleArray>): Promise<number | undefined>;
|
|
3941
|
+
private buildTile;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3895
3944
|
/** The nearest rendered block triangle hit by a world raycast. */
|
|
3896
3945
|
interface WorldBlockIntersection {
|
|
3897
3946
|
/** Integer world block coordinates of the geometry's owner. */
|
|
@@ -3922,6 +3971,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3922
3971
|
private readonly lightAt?;
|
|
3923
3972
|
private readonly onLightCleared?;
|
|
3924
3973
|
private readonly ambientLight;
|
|
3974
|
+
private readonly biomeBlend?;
|
|
3925
3975
|
readonly scene: MineRenderScene;
|
|
3926
3976
|
readonly x: number;
|
|
3927
3977
|
readonly y: number;
|
|
@@ -3939,7 +3989,9 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3939
3989
|
private meshDirty;
|
|
3940
3990
|
private meshGeneration;
|
|
3941
3991
|
private ambientOcclusionCells?;
|
|
3942
|
-
|
|
3992
|
+
private readonly blockChanges;
|
|
3993
|
+
private biomeChange?;
|
|
3994
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined, sectionModels?: SectionModels | undefined, neighborCell?: ((x: number, y: number, z: number) => number) | undefined, biomeAt?: ((x: number, y: number, z: number) => Maybe<string>) | undefined, onBiomesChanged?: ((biomes?: readonly string[]) => Promise<void>) | undefined, lightAt?: ((x: number, y: number, z: number) => number) | undefined, onLightCleared?: (() => Promise<void>) | undefined, ambientLight?: number, biomeBlend?: (() => BiomeBlend | undefined) | undefined);
|
|
3943
3995
|
/** Finds the nearest owned block hit across sections, testing each shared mesh once. */
|
|
3944
3996
|
static raycast<SectionMeshing extends boolean>(chunks: Iterable<Chunk<SectionMeshing>>, raycaster: Raycaster): WorldBlockIntersection | undefined;
|
|
3945
3997
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3952,7 +4004,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3952
4004
|
/** Copies 64 biome IDs in x + z * 4 + y * 16 order and refreshes placed blocks. Omit the array to clear biome data. */
|
|
3953
4005
|
setBiomes(biomes?: readonly string[]): Promise<void>;
|
|
3954
4006
|
/** Rebuilds biome-tinted blocks while preserving hidden blocks and unrelated render objects. */
|
|
3955
|
-
refreshBiomes(
|
|
4007
|
+
refreshBiomes(columns?: readonly {
|
|
4008
|
+
x: number;
|
|
4009
|
+
z: number;
|
|
4010
|
+
}[]): Promise<void>;
|
|
4011
|
+
private refreshBiomeBlocks;
|
|
3956
4012
|
/**
|
|
3957
4013
|
* Places a block at integer world block coordinates. Pass `undefined` to remove it.
|
|
3958
4014
|
*/
|
|
@@ -3968,8 +4024,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3968
4024
|
index: number;
|
|
3969
4025
|
block: Maybe<Block>;
|
|
3970
4026
|
}[]): Promise<Vector3[]>;
|
|
4027
|
+
private changeBlocks;
|
|
4028
|
+
private replaceBlocks;
|
|
3971
4029
|
/** Replaces every cell from parsed section data. The caller refreshes neighbor culling. */
|
|
3972
4030
|
placeSection(data: ChunkData): Promise<void>;
|
|
4031
|
+
private replaceSection;
|
|
3973
4032
|
private positionAt;
|
|
3974
4033
|
/** Refreshes saved lighting after adjacent columns load or unload, including columns with only light data. */
|
|
3975
4034
|
refreshLight(indices?: Iterable<number>): Promise<void>;
|
|
@@ -3981,6 +4040,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3981
4040
|
private setWaterTint;
|
|
3982
4041
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3983
4042
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
4043
|
+
private setBlockVisibility;
|
|
3984
4044
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3985
4045
|
/** Reports whether a cell has a visible render object or section entry. */
|
|
3986
4046
|
isBlockVisibleIndex(index: number): boolean;
|
|
@@ -4045,6 +4105,10 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4045
4105
|
private readonly ambientLight;
|
|
4046
4106
|
private _ambientOcclusion;
|
|
4047
4107
|
private ambientOcclusionPending;
|
|
4108
|
+
private _biomeBlendRadius;
|
|
4109
|
+
private biomeBlend?;
|
|
4110
|
+
private readonly pendingBiomes;
|
|
4111
|
+
private biomeRefreshing?;
|
|
4048
4112
|
private readonly sectionModels?;
|
|
4049
4113
|
private readonly entities?;
|
|
4050
4114
|
private readonly pendingCulling;
|
|
@@ -4065,6 +4129,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4065
4129
|
get ambientOcclusion(): boolean;
|
|
4066
4130
|
/** Rebuilds loaded blocks with or without corner shading. Block data and saved lighting are preserved. */
|
|
4067
4131
|
setAmbientOcclusion(enabled: boolean): Promise<void>;
|
|
4132
|
+
/** Horizontal biome-color sampling radius, from 0 to 7 blocks. Zero disables blending. */
|
|
4133
|
+
get biomeBlendRadius(): number;
|
|
4134
|
+
/** Refreshes loaded grass, foliage, and water colors without reloading their source chunks. */
|
|
4135
|
+
setBiomeBlendRadius(radius: number): Promise<void>;
|
|
4136
|
+
private markBiomesChanged;
|
|
4137
|
+
private refreshBiomes;
|
|
4068
4138
|
/** Returns a placed block at world block coordinates, or `undefined` for an empty position. */
|
|
4069
4139
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
4070
4140
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -4140,6 +4210,8 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
4140
4210
|
ambientLight?: number;
|
|
4141
4211
|
/** Bake corner shading from neighboring opaque full cubes. Defaults to false; no per-frame shading pass is added. Requires `sectionMeshing`. */
|
|
4142
4212
|
ambientOcclusion?: boolean;
|
|
4213
|
+
/** Average neighboring biome colors within this horizontal radius, from 0 to 7 blocks. Defaults to 0 (off). Requires `sectionMeshing`. */
|
|
4214
|
+
biomeBlendRadius?: number;
|
|
4143
4215
|
/** Maximum width and height of each section atlas page, in pixels. */
|
|
4144
4216
|
maxAtlasSize?: number;
|
|
4145
4217
|
}
|
|
@@ -4301,4 +4373,4 @@ declare class NodeRenderer extends Renderer {
|
|
|
4301
4373
|
dispose(): void;
|
|
4302
4374
|
}
|
|
4303
4375
|
|
|
4304
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, type AnvilEntityChunk, type AnvilExternalChunkReader, type AnvilParseOptions, 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 Biome, type BiomeColorKind, Biomes, 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 ControlsMode, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, DYE_COLORS, type DebugOptions, type DecoratedPotSide, DecoratedPots, 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 FluidQuads, type FluidRules, type FluidSample, type FluidSampler, type FlyAction, FlyControls, type FlyControlsEventMap, 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, ItemDefaults, ItemGlint, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, LitematicaParser, type LitematicaRegion, type LitematicaStructure, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderData, type MineRenderDataManifest, type MineRenderDatasets, 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, type NodeImageOptions, NodeRenderer, type NodeRendererOptions, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, PlayerHeadTextures, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererControls, type RendererFrame, type RendererOptions, type RendererSurface, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResolvedMineRenderData, type ResponseParser, SCENE_DOCUMENT_MAX_BYTES, SKIN_PARTS, type SavedLightSample, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneItemContext, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, type SectionAtlasSize, type SectionFluidInput, type SectionFluidKind, type SectionFluids, type SectionGeometryInput, type SectionGeometryPage, type SectionLightData, 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 WorldBlockIntersection, type WorldChunkSource, type WorldEntityIntersection, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildFluidQuads, buildSectionGeometry, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, copySectionLight, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, decodeSceneDocument, encodeSceneDocument, entityAnimationTime, estimateBytesUsed, fluidKindOf, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isFlyControls, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isResourceLocation, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, registerNodeEnv, resolveBlockFluidState, resolveLegacyBlock, resolveLegacyBlockState, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, sampleSectionLight, sectionGeometryTransferables, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas, yieldToEventLoop };
|
|
4376
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, type AnvilEntityChunk, type AnvilExternalChunkReader, type AnvilParseOptions, 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 Biome, type BiomeColorKind, Biomes, 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 ControlsMode, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, DYE_COLORS, type DebugOptions, type DecoratedPotSide, DecoratedPots, 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 FluidQuads, type FluidRules, type FluidSample, type FluidSampler, type FlyAction, FlyControls, type FlyControlsEventMap, 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, ItemDefaults, ItemGlint, type ItemModel, type ItemModelContext, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, LitematicaParser, type LitematicaRegion, type LitematicaStructure, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderData, type MineRenderDataManifest, type MineRenderDatasets, 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, type NodeImageOptions, NodeRenderer, type NodeRendererOptions, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, PlayerHeadTextures, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenameKind, Renames, type RenderOptions, Renderer, type RendererControls, type RendererFrame, type RendererOptions, type RendererSurface, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResolvedMineRenderData, type ResponseParser, SCENE_DOCUMENT_MAX_BYTES, SKIN_PARTS, type SavedLightSample, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneItemContext, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, type SectionAtlasSize, type SectionFluidInput, type SectionFluidKind, type SectionFluids, type SectionGeometryInput, type SectionGeometryPage, type SectionLightData, 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 WorldBlockIntersection, type WorldChunkSource, type WorldEntityIntersection, WorldStreamer, type WorldStreamerOptions, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, buildFluidQuads, buildSectionGeometry, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, copySectionLight, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, decodeSceneDocument, encodeSceneDocument, entityAnimationTime, estimateBytesUsed, fluidKindOf, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isFlyControls, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isResourceLocation, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, registerNodeEnv, resolveBlockFluidState, resolveLegacyBlock, resolveLegacyBlockState, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, sampleSectionLight, sectionGeometryTransferables, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas, yieldToEventLoop };
|