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/browser/index.d.mts
CHANGED
|
@@ -1291,6 +1291,20 @@ declare class Fonts {
|
|
|
1291
1291
|
private static bitmap;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
+
type RenameKind = "blocks" | "items" | "entities";
|
|
1295
|
+
/** Maps IDs that older Minecraft versions used to the IDs the selected version uses. */
|
|
1296
|
+
declare class Renames {
|
|
1297
|
+
/** Loads the selected version's rename table, or `undefined` when its published data has none. */
|
|
1298
|
+
static get(root?: string): Promise<Maybe<MineRenderDatasets["renames"]>>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Returns the ID that replaced `id`, or `undefined` when `id` keeps its meaning.
|
|
1301
|
+
* Without a data version, an ID that the selected version still registers keeps its meaning.
|
|
1302
|
+
*/
|
|
1303
|
+
static resolve(kind: RenameKind, id: string, dataVersion?: number, root?: string): Promise<Maybe<string>>;
|
|
1304
|
+
/** Returns a copy of `key` for the replacement ID, or `undefined` when the ID keeps its meaning. */
|
|
1305
|
+
static key(kind: RenameKind, key: AssetKey): Promise<Maybe<AssetKey>>;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1294
1308
|
interface MineRenderDatasets {
|
|
1295
1309
|
itemDefaults: Record<string, Record<string, unknown>>;
|
|
1296
1310
|
potionColors: {
|
|
@@ -1333,6 +1347,16 @@ interface MineRenderDatasets {
|
|
|
1333
1347
|
legacyBlocks: {
|
|
1334
1348
|
blocks: Record<string, string>;
|
|
1335
1349
|
};
|
|
1350
|
+
renames: {
|
|
1351
|
+
format: "data-fixer-renames";
|
|
1352
|
+
baseDataVersion: number;
|
|
1353
|
+
} & Record<RenameKind, Record<string, {
|
|
1354
|
+
registered: boolean;
|
|
1355
|
+
ranges: {
|
|
1356
|
+
before: number;
|
|
1357
|
+
to: string;
|
|
1358
|
+
}[];
|
|
1359
|
+
}>>;
|
|
1336
1360
|
}
|
|
1337
1361
|
interface MineRenderDataManifest {
|
|
1338
1362
|
schemaVersion: 1;
|
|
@@ -2625,6 +2649,9 @@ interface BedrockGeometryFile {
|
|
|
2625
2649
|
|
|
2626
2650
|
/** Shared in-memory caches for loaded assets and render resources. Persistent stores are managed separately. */
|
|
2627
2651
|
declare class Caching {
|
|
2652
|
+
private static _generation;
|
|
2653
|
+
/** Changes when shared assets are cleared, so derived caches can discard their old values. */
|
|
2654
|
+
static get generation(): number;
|
|
2628
2655
|
static readonly rawImageCache: AsyncLoadingCache<CacheKey, ImageInfo>;
|
|
2629
2656
|
static readonly imageDataCache: AsyncLoadingCache<CacheKey, ImageData>;
|
|
2630
2657
|
static readonly canvasImageDataCache: AsyncLoadingCache<CacheKey, ExtractableImageData>;
|
|
@@ -3762,6 +3789,7 @@ interface SectionTemplateData {
|
|
|
3762
3789
|
colors: Float32Array;
|
|
3763
3790
|
indices: Uint16Array;
|
|
3764
3791
|
cullFaces: Uint8Array;
|
|
3792
|
+
biomeTint?: Uint8Array;
|
|
3765
3793
|
atlas: number;
|
|
3766
3794
|
layer: number;
|
|
3767
3795
|
ambientOcclusion?: boolean;
|
|
@@ -3794,6 +3822,8 @@ interface SectionGeometryInput {
|
|
|
3794
3822
|
indices: Uint16Array;
|
|
3795
3823
|
templates: Uint16Array;
|
|
3796
3824
|
cullMasks: Uint8Array;
|
|
3825
|
+
/** Linear RGB per placement; three NaN values preserve the template's colors. */
|
|
3826
|
+
biomeTints?: Float32Array;
|
|
3797
3827
|
templateData: SectionTemplateData[];
|
|
3798
3828
|
atlases: SectionAtlasSize[];
|
|
3799
3829
|
maxAtlasSize: number;
|
|
@@ -3834,6 +3864,8 @@ interface SectionMeshTemplate {
|
|
|
3834
3864
|
geometry: BufferGeometry;
|
|
3835
3865
|
atlas: TextureAtlas;
|
|
3836
3866
|
cullFaces: Uint8Array;
|
|
3867
|
+
/** Quads that accept a placement's biome tint, stored as zero or one. */
|
|
3868
|
+
biomeTint?: Uint8Array;
|
|
3837
3869
|
occludes: boolean;
|
|
3838
3870
|
/** Whether the model permits corner shading from neighboring full cubes. */
|
|
3839
3871
|
ambientOcclusion?: boolean;
|
|
@@ -3844,6 +3876,8 @@ interface SectionMeshEntry {
|
|
|
3844
3876
|
index: number;
|
|
3845
3877
|
template: SectionMeshTemplate;
|
|
3846
3878
|
cullMask: number;
|
|
3879
|
+
/** Linear RGB replacing automatic biome colors on eligible quads. */
|
|
3880
|
+
biomeTint?: readonly [number, number, number];
|
|
3847
3881
|
}
|
|
3848
3882
|
/** Fluid cells for one section and the shared atlases of the kinds present. */
|
|
3849
3883
|
interface SectionFluids {
|
|
@@ -3877,9 +3911,10 @@ declare class SectionModels {
|
|
|
3877
3911
|
constructor(maxAtlasSize?: number);
|
|
3878
3912
|
/** Returns templates for the matched parts, or `undefined` when the block needs an individual render object. */
|
|
3879
3913
|
get(blockState: BlockState, properties?: BlockStateProperties, position?: Readonly<TripleArray>, biome?: string): Promise<SectionMeshTemplate[] | undefined>;
|
|
3880
|
-
/** Resolves
|
|
3881
|
-
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>)): Promise<{
|
|
3914
|
+
/** Resolves shared templates; dynamic biome tints are supplied on section placements instead of cached geometry. */
|
|
3915
|
+
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>), dynamicBiomeTint?: boolean): Promise<{
|
|
3882
3916
|
pick(position?: Readonly<TripleArray>): SectionMeshTemplate[];
|
|
3917
|
+
biomeTint?: boolean;
|
|
3883
3918
|
} | undefined>;
|
|
3884
3919
|
private state;
|
|
3885
3920
|
/** Returns the shared still/flow atlas used by per-block fluid objects. */
|
|
@@ -3890,6 +3925,20 @@ declare class SectionModels {
|
|
|
3890
3925
|
clear(): void;
|
|
3891
3926
|
}
|
|
3892
3927
|
|
|
3928
|
+
/** Caches horizontal color averages for saved quart-resolution biome samples. */
|
|
3929
|
+
declare class BiomeBlend {
|
|
3930
|
+
private readonly biomeAt;
|
|
3931
|
+
private readonly tiles;
|
|
3932
|
+
private generation;
|
|
3933
|
+
private _radius;
|
|
3934
|
+
constructor(biomeAt: (x: number, y: number, z: number) => string | undefined, radius: number);
|
|
3935
|
+
get radius(): number;
|
|
3936
|
+
clear(): void;
|
|
3937
|
+
invalidateColumn(x: number, z: number): void;
|
|
3938
|
+
getColor(kind: BiomeColorKind, origin: AssetKey | undefined, position: Readonly<TripleArray>): Promise<number | undefined>;
|
|
3939
|
+
private buildTile;
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3893
3942
|
/** The nearest rendered block triangle hit by a world raycast. */
|
|
3894
3943
|
interface WorldBlockIntersection {
|
|
3895
3944
|
/** Integer world block coordinates of the geometry's owner. */
|
|
@@ -3920,6 +3969,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3920
3969
|
private readonly lightAt?;
|
|
3921
3970
|
private readonly onLightCleared?;
|
|
3922
3971
|
private readonly ambientLight;
|
|
3972
|
+
private readonly biomeBlend?;
|
|
3923
3973
|
readonly scene: MineRenderScene;
|
|
3924
3974
|
readonly x: number;
|
|
3925
3975
|
readonly y: number;
|
|
@@ -3937,7 +3987,9 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3937
3987
|
private meshDirty;
|
|
3938
3988
|
private meshGeneration;
|
|
3939
3989
|
private ambientOcclusionCells?;
|
|
3940
|
-
|
|
3990
|
+
private readonly blockChanges;
|
|
3991
|
+
private biomeChange?;
|
|
3992
|
+
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);
|
|
3941
3993
|
/** Finds the nearest owned block hit across sections, testing each shared mesh once. */
|
|
3942
3994
|
static raycast<SectionMeshing extends boolean>(chunks: Iterable<Chunk<SectionMeshing>>, raycaster: Raycaster): WorldBlockIntersection | undefined;
|
|
3943
3995
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3950,7 +4002,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3950
4002
|
/** Copies 64 biome IDs in x + z * 4 + y * 16 order and refreshes placed blocks. Omit the array to clear biome data. */
|
|
3951
4003
|
setBiomes(biomes?: readonly string[]): Promise<void>;
|
|
3952
4004
|
/** Rebuilds biome-tinted blocks while preserving hidden blocks and unrelated render objects. */
|
|
3953
|
-
refreshBiomes(
|
|
4005
|
+
refreshBiomes(columns?: readonly {
|
|
4006
|
+
x: number;
|
|
4007
|
+
z: number;
|
|
4008
|
+
}[]): Promise<void>;
|
|
4009
|
+
private refreshBiomeBlocks;
|
|
3954
4010
|
/**
|
|
3955
4011
|
* Places a block at integer world block coordinates. Pass `undefined` to remove it.
|
|
3956
4012
|
*/
|
|
@@ -3966,8 +4022,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3966
4022
|
index: number;
|
|
3967
4023
|
block: Maybe<Block>;
|
|
3968
4024
|
}[]): Promise<Vector3[]>;
|
|
4025
|
+
private changeBlocks;
|
|
4026
|
+
private replaceBlocks;
|
|
3969
4027
|
/** Replaces every cell from parsed section data. The caller refreshes neighbor culling. */
|
|
3970
4028
|
placeSection(data: ChunkData): Promise<void>;
|
|
4029
|
+
private replaceSection;
|
|
3971
4030
|
private positionAt;
|
|
3972
4031
|
/** Refreshes saved lighting after adjacent columns load or unload, including columns with only light data. */
|
|
3973
4032
|
refreshLight(indices?: Iterable<number>): Promise<void>;
|
|
@@ -3979,6 +4038,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3979
4038
|
private setWaterTint;
|
|
3980
4039
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3981
4040
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
4041
|
+
private setBlockVisibility;
|
|
3982
4042
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3983
4043
|
/** Reports whether a cell has a visible render object or section entry. */
|
|
3984
4044
|
isBlockVisibleIndex(index: number): boolean;
|
|
@@ -4043,6 +4103,10 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4043
4103
|
private readonly ambientLight;
|
|
4044
4104
|
private _ambientOcclusion;
|
|
4045
4105
|
private ambientOcclusionPending;
|
|
4106
|
+
private _biomeBlendRadius;
|
|
4107
|
+
private biomeBlend?;
|
|
4108
|
+
private readonly pendingBiomes;
|
|
4109
|
+
private biomeRefreshing?;
|
|
4046
4110
|
private readonly sectionModels?;
|
|
4047
4111
|
private readonly entities?;
|
|
4048
4112
|
private readonly pendingCulling;
|
|
@@ -4063,6 +4127,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4063
4127
|
get ambientOcclusion(): boolean;
|
|
4064
4128
|
/** Rebuilds loaded blocks with or without corner shading. Block data and saved lighting are preserved. */
|
|
4065
4129
|
setAmbientOcclusion(enabled: boolean): Promise<void>;
|
|
4130
|
+
/** Horizontal biome-color sampling radius, from 0 to 7 blocks. Zero disables blending. */
|
|
4131
|
+
get biomeBlendRadius(): number;
|
|
4132
|
+
/** Refreshes loaded grass, foliage, and water colors without reloading their source chunks. */
|
|
4133
|
+
setBiomeBlendRadius(radius: number): Promise<void>;
|
|
4134
|
+
private markBiomesChanged;
|
|
4135
|
+
private refreshBiomes;
|
|
4066
4136
|
/** Returns a placed block at world block coordinates, or `undefined` for an empty position. */
|
|
4067
4137
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
4068
4138
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -4138,6 +4208,8 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
4138
4208
|
ambientLight?: number;
|
|
4139
4209
|
/** Bake corner shading from neighboring opaque full cubes. Defaults to false; no per-frame shading pass is added. Requires `sectionMeshing`. */
|
|
4140
4210
|
ambientOcclusion?: boolean;
|
|
4211
|
+
/** Average neighboring biome colors within this horizontal radius, from 0 to 7 blocks. Defaults to 0 (off). Requires `sectionMeshing`. */
|
|
4212
|
+
biomeBlendRadius?: number;
|
|
4141
4213
|
/** Maximum width and height of each section atlas page, in pixels. */
|
|
4142
4214
|
maxAtlasSize?: number;
|
|
4143
4215
|
}
|
|
@@ -4269,4 +4341,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
4269
4341
|
*/
|
|
4270
4342
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
4271
4343
|
|
|
4272
|
-
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, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type 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, 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, probeImageSize, registerBrowserEnv, 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 };
|
|
4344
|
+
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, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type 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, 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, probeImageSize, registerBrowserEnv, 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/browser/index.d.ts
CHANGED
|
@@ -1291,6 +1291,20 @@ declare class Fonts {
|
|
|
1291
1291
|
private static bitmap;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
+
type RenameKind = "blocks" | "items" | "entities";
|
|
1295
|
+
/** Maps IDs that older Minecraft versions used to the IDs the selected version uses. */
|
|
1296
|
+
declare class Renames {
|
|
1297
|
+
/** Loads the selected version's rename table, or `undefined` when its published data has none. */
|
|
1298
|
+
static get(root?: string): Promise<Maybe<MineRenderDatasets["renames"]>>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Returns the ID that replaced `id`, or `undefined` when `id` keeps its meaning.
|
|
1301
|
+
* Without a data version, an ID that the selected version still registers keeps its meaning.
|
|
1302
|
+
*/
|
|
1303
|
+
static resolve(kind: RenameKind, id: string, dataVersion?: number, root?: string): Promise<Maybe<string>>;
|
|
1304
|
+
/** Returns a copy of `key` for the replacement ID, or `undefined` when the ID keeps its meaning. */
|
|
1305
|
+
static key(kind: RenameKind, key: AssetKey): Promise<Maybe<AssetKey>>;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1294
1308
|
interface MineRenderDatasets {
|
|
1295
1309
|
itemDefaults: Record<string, Record<string, unknown>>;
|
|
1296
1310
|
potionColors: {
|
|
@@ -1333,6 +1347,16 @@ interface MineRenderDatasets {
|
|
|
1333
1347
|
legacyBlocks: {
|
|
1334
1348
|
blocks: Record<string, string>;
|
|
1335
1349
|
};
|
|
1350
|
+
renames: {
|
|
1351
|
+
format: "data-fixer-renames";
|
|
1352
|
+
baseDataVersion: number;
|
|
1353
|
+
} & Record<RenameKind, Record<string, {
|
|
1354
|
+
registered: boolean;
|
|
1355
|
+
ranges: {
|
|
1356
|
+
before: number;
|
|
1357
|
+
to: string;
|
|
1358
|
+
}[];
|
|
1359
|
+
}>>;
|
|
1336
1360
|
}
|
|
1337
1361
|
interface MineRenderDataManifest {
|
|
1338
1362
|
schemaVersion: 1;
|
|
@@ -2625,6 +2649,9 @@ interface BedrockGeometryFile {
|
|
|
2625
2649
|
|
|
2626
2650
|
/** Shared in-memory caches for loaded assets and render resources. Persistent stores are managed separately. */
|
|
2627
2651
|
declare class Caching {
|
|
2652
|
+
private static _generation;
|
|
2653
|
+
/** Changes when shared assets are cleared, so derived caches can discard their old values. */
|
|
2654
|
+
static get generation(): number;
|
|
2628
2655
|
static readonly rawImageCache: AsyncLoadingCache<CacheKey, ImageInfo>;
|
|
2629
2656
|
static readonly imageDataCache: AsyncLoadingCache<CacheKey, ImageData>;
|
|
2630
2657
|
static readonly canvasImageDataCache: AsyncLoadingCache<CacheKey, ExtractableImageData>;
|
|
@@ -3762,6 +3789,7 @@ interface SectionTemplateData {
|
|
|
3762
3789
|
colors: Float32Array;
|
|
3763
3790
|
indices: Uint16Array;
|
|
3764
3791
|
cullFaces: Uint8Array;
|
|
3792
|
+
biomeTint?: Uint8Array;
|
|
3765
3793
|
atlas: number;
|
|
3766
3794
|
layer: number;
|
|
3767
3795
|
ambientOcclusion?: boolean;
|
|
@@ -3794,6 +3822,8 @@ interface SectionGeometryInput {
|
|
|
3794
3822
|
indices: Uint16Array;
|
|
3795
3823
|
templates: Uint16Array;
|
|
3796
3824
|
cullMasks: Uint8Array;
|
|
3825
|
+
/** Linear RGB per placement; three NaN values preserve the template's colors. */
|
|
3826
|
+
biomeTints?: Float32Array;
|
|
3797
3827
|
templateData: SectionTemplateData[];
|
|
3798
3828
|
atlases: SectionAtlasSize[];
|
|
3799
3829
|
maxAtlasSize: number;
|
|
@@ -3834,6 +3864,8 @@ interface SectionMeshTemplate {
|
|
|
3834
3864
|
geometry: BufferGeometry;
|
|
3835
3865
|
atlas: TextureAtlas;
|
|
3836
3866
|
cullFaces: Uint8Array;
|
|
3867
|
+
/** Quads that accept a placement's biome tint, stored as zero or one. */
|
|
3868
|
+
biomeTint?: Uint8Array;
|
|
3837
3869
|
occludes: boolean;
|
|
3838
3870
|
/** Whether the model permits corner shading from neighboring full cubes. */
|
|
3839
3871
|
ambientOcclusion?: boolean;
|
|
@@ -3844,6 +3876,8 @@ interface SectionMeshEntry {
|
|
|
3844
3876
|
index: number;
|
|
3845
3877
|
template: SectionMeshTemplate;
|
|
3846
3878
|
cullMask: number;
|
|
3879
|
+
/** Linear RGB replacing automatic biome colors on eligible quads. */
|
|
3880
|
+
biomeTint?: readonly [number, number, number];
|
|
3847
3881
|
}
|
|
3848
3882
|
/** Fluid cells for one section and the shared atlases of the kinds present. */
|
|
3849
3883
|
interface SectionFluids {
|
|
@@ -3877,9 +3911,10 @@ declare class SectionModels {
|
|
|
3877
3911
|
constructor(maxAtlasSize?: number);
|
|
3878
3912
|
/** Returns templates for the matched parts, or `undefined` when the block needs an individual render object. */
|
|
3879
3913
|
get(blockState: BlockState, properties?: BlockStateProperties, position?: Readonly<TripleArray>, biome?: string): Promise<SectionMeshTemplate[] | undefined>;
|
|
3880
|
-
/** Resolves
|
|
3881
|
-
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>)): Promise<{
|
|
3914
|
+
/** Resolves shared templates; dynamic biome tints are supplied on section placements instead of cached geometry. */
|
|
3915
|
+
prepareState(blockState: BlockState, properties?: BlockStateProperties, biomeColor?: number | (() => Promise<number | undefined>), dynamicBiomeTint?: boolean): Promise<{
|
|
3882
3916
|
pick(position?: Readonly<TripleArray>): SectionMeshTemplate[];
|
|
3917
|
+
biomeTint?: boolean;
|
|
3883
3918
|
} | undefined>;
|
|
3884
3919
|
private state;
|
|
3885
3920
|
/** Returns the shared still/flow atlas used by per-block fluid objects. */
|
|
@@ -3890,6 +3925,20 @@ declare class SectionModels {
|
|
|
3890
3925
|
clear(): void;
|
|
3891
3926
|
}
|
|
3892
3927
|
|
|
3928
|
+
/** Caches horizontal color averages for saved quart-resolution biome samples. */
|
|
3929
|
+
declare class BiomeBlend {
|
|
3930
|
+
private readonly biomeAt;
|
|
3931
|
+
private readonly tiles;
|
|
3932
|
+
private generation;
|
|
3933
|
+
private _radius;
|
|
3934
|
+
constructor(biomeAt: (x: number, y: number, z: number) => string | undefined, radius: number);
|
|
3935
|
+
get radius(): number;
|
|
3936
|
+
clear(): void;
|
|
3937
|
+
invalidateColumn(x: number, z: number): void;
|
|
3938
|
+
getColor(kind: BiomeColorKind, origin: AssetKey | undefined, position: Readonly<TripleArray>): Promise<number | undefined>;
|
|
3939
|
+
private buildTile;
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3893
3942
|
/** The nearest rendered block triangle hit by a world raycast. */
|
|
3894
3943
|
interface WorldBlockIntersection {
|
|
3895
3944
|
/** Integer world block coordinates of the geometry's owner. */
|
|
@@ -3920,6 +3969,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3920
3969
|
private readonly lightAt?;
|
|
3921
3970
|
private readonly onLightCleared?;
|
|
3922
3971
|
private readonly ambientLight;
|
|
3972
|
+
private readonly biomeBlend?;
|
|
3923
3973
|
readonly scene: MineRenderScene;
|
|
3924
3974
|
readonly x: number;
|
|
3925
3975
|
readonly y: number;
|
|
@@ -3937,7 +3987,9 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3937
3987
|
private meshDirty;
|
|
3938
3988
|
private meshGeneration;
|
|
3939
3989
|
private ambientOcclusionCells?;
|
|
3940
|
-
|
|
3990
|
+
private readonly blockChanges;
|
|
3991
|
+
private biomeChange?;
|
|
3992
|
+
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);
|
|
3941
3993
|
/** Finds the nearest owned block hit across sections, testing each shared mesh once. */
|
|
3942
3994
|
static raycast<SectionMeshing extends boolean>(chunks: Iterable<Chunk<SectionMeshing>>, raycaster: Raycaster): WorldBlockIntersection | undefined;
|
|
3943
3995
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -3950,7 +4002,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3950
4002
|
/** Copies 64 biome IDs in x + z * 4 + y * 16 order and refreshes placed blocks. Omit the array to clear biome data. */
|
|
3951
4003
|
setBiomes(biomes?: readonly string[]): Promise<void>;
|
|
3952
4004
|
/** Rebuilds biome-tinted blocks while preserving hidden blocks and unrelated render objects. */
|
|
3953
|
-
refreshBiomes(
|
|
4005
|
+
refreshBiomes(columns?: readonly {
|
|
4006
|
+
x: number;
|
|
4007
|
+
z: number;
|
|
4008
|
+
}[]): Promise<void>;
|
|
4009
|
+
private refreshBiomeBlocks;
|
|
3954
4010
|
/**
|
|
3955
4011
|
* Places a block at integer world block coordinates. Pass `undefined` to remove it.
|
|
3956
4012
|
*/
|
|
@@ -3966,8 +4022,11 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3966
4022
|
index: number;
|
|
3967
4023
|
block: Maybe<Block>;
|
|
3968
4024
|
}[]): Promise<Vector3[]>;
|
|
4025
|
+
private changeBlocks;
|
|
4026
|
+
private replaceBlocks;
|
|
3969
4027
|
/** Replaces every cell from parsed section data. The caller refreshes neighbor culling. */
|
|
3970
4028
|
placeSection(data: ChunkData): Promise<void>;
|
|
4029
|
+
private replaceSection;
|
|
3971
4030
|
private positionAt;
|
|
3972
4031
|
/** Refreshes saved lighting after adjacent columns load or unload, including columns with only light data. */
|
|
3973
4032
|
refreshLight(indices?: Iterable<number>): Promise<void>;
|
|
@@ -3979,6 +4038,7 @@ declare class Chunk<SectionMeshing extends boolean = false> {
|
|
|
3979
4038
|
private setWaterTint;
|
|
3980
4039
|
/** Changes visibility at world block coordinates while preserving the block's data. */
|
|
3981
4040
|
setBlockVisibleAt(pos: Vector3, visible: boolean): Promise<void>;
|
|
4041
|
+
private setBlockVisibility;
|
|
3982
4042
|
isBlockVisibleAt(pos: Vector3): boolean;
|
|
3983
4043
|
/** Reports whether a cell has a visible render object or section entry. */
|
|
3984
4044
|
isBlockVisibleIndex(index: number): boolean;
|
|
@@ -4043,6 +4103,10 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4043
4103
|
private readonly ambientLight;
|
|
4044
4104
|
private _ambientOcclusion;
|
|
4045
4105
|
private ambientOcclusionPending;
|
|
4106
|
+
private _biomeBlendRadius;
|
|
4107
|
+
private biomeBlend?;
|
|
4108
|
+
private readonly pendingBiomes;
|
|
4109
|
+
private biomeRefreshing?;
|
|
4046
4110
|
private readonly sectionModels?;
|
|
4047
4111
|
private readonly entities?;
|
|
4048
4112
|
private readonly pendingCulling;
|
|
@@ -4063,6 +4127,12 @@ declare class MineRenderWorld<SectionMeshing extends boolean = false> {
|
|
|
4063
4127
|
get ambientOcclusion(): boolean;
|
|
4064
4128
|
/** Rebuilds loaded blocks with or without corner shading. Block data and saved lighting are preserved. */
|
|
4065
4129
|
setAmbientOcclusion(enabled: boolean): Promise<void>;
|
|
4130
|
+
/** Horizontal biome-color sampling radius, from 0 to 7 blocks. Zero disables blending. */
|
|
4131
|
+
get biomeBlendRadius(): number;
|
|
4132
|
+
/** Refreshes loaded grass, foliage, and water colors without reloading their source chunks. */
|
|
4133
|
+
setBiomeBlendRadius(radius: number): Promise<void>;
|
|
4134
|
+
private markBiomesChanged;
|
|
4135
|
+
private refreshBiomes;
|
|
4066
4136
|
/** Returns a placed block at world block coordinates, or `undefined` for an empty position. */
|
|
4067
4137
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo<SectionMeshing>>;
|
|
4068
4138
|
getBlockAt(pos: Vector3): Maybe<BlockInfo<SectionMeshing>>;
|
|
@@ -4138,6 +4208,8 @@ interface MineRenderWorldOptions<SectionMeshing extends boolean = boolean> {
|
|
|
4138
4208
|
ambientLight?: number;
|
|
4139
4209
|
/** Bake corner shading from neighboring opaque full cubes. Defaults to false; no per-frame shading pass is added. Requires `sectionMeshing`. */
|
|
4140
4210
|
ambientOcclusion?: boolean;
|
|
4211
|
+
/** Average neighboring biome colors within this horizontal radius, from 0 to 7 blocks. Defaults to 0 (off). Requires `sectionMeshing`. */
|
|
4212
|
+
biomeBlendRadius?: number;
|
|
4141
4213
|
/** Maximum width and height of each section atlas page, in pixels. */
|
|
4142
4214
|
maxAtlasSize?: number;
|
|
4143
4215
|
}
|
|
@@ -4269,4 +4341,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
4269
4341
|
*/
|
|
4270
4342
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
4271
4343
|
|
|
4272
|
-
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, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type 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, 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, probeImageSize, registerBrowserEnv, 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 };
|
|
4344
|
+
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, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type 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, 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, probeImageSize, registerBrowserEnv, 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 };
|