minerender 2.1.0-alpha.36 → 2.1.0-alpha.38
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 +40 -4
- package/dist/browser/index.d.ts +40 -4
- package/dist/browser/index.js +394 -145
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +336 -87
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +737 -483
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +40 -4
- package/dist/node/index.d.ts +40 -4
- package/dist/node/index.js +397 -145
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +336 -87
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.mts
CHANGED
|
@@ -39,6 +39,7 @@ declare enum CubeFaceIndex {
|
|
|
39
39
|
NORTH = 5
|
|
40
40
|
}
|
|
41
41
|
declare const CUBE_FACES: CubeFace[];
|
|
42
|
+
declare const CUBE_FACE_OFFSETS: readonly [readonly [1, 0, 0], readonly [-1, 0, 0], readonly [0, 1, 0], readonly [0, -1, 0], readonly [0, 0, 1], readonly [0, 0, -1]];
|
|
42
43
|
|
|
43
44
|
interface Disposable {
|
|
44
45
|
dispose(): void;
|
|
@@ -805,6 +806,11 @@ declare class DisplayTransforms {
|
|
|
805
806
|
static apply(geometry: BufferGeometry, matrix: Matrix4): void;
|
|
806
807
|
}
|
|
807
808
|
|
|
809
|
+
declare class ModelCulling {
|
|
810
|
+
static toLocalMask(worldMask: number, rotation: Euler): number;
|
|
811
|
+
static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
|
|
812
|
+
}
|
|
813
|
+
|
|
808
814
|
declare class ModelGenerator {
|
|
809
815
|
static readonly ITEM_LAYERS: string[];
|
|
810
816
|
static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
|
|
@@ -882,6 +888,7 @@ declare class ModelObject extends SceneObject {
|
|
|
882
888
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
883
889
|
init(): Promise<void>;
|
|
884
890
|
get textureAtlas(): Maybe<TextureAtlas>;
|
|
891
|
+
get isOpaqueFullCube(): boolean;
|
|
885
892
|
protected loadTextures(): Promise<void>;
|
|
886
893
|
protected createMeshes(force?: boolean): void;
|
|
887
894
|
protected applyTextures(): void;
|
|
@@ -893,6 +900,8 @@ interface ModelObjectOptions extends SceneObjectOptions {
|
|
|
893
900
|
uvLockRotation?: TripleArray;
|
|
894
901
|
/** sRGB 0xRRGGBB colors by face tint index; omitted indices stay white. */
|
|
895
902
|
tints?: Record<number, number>;
|
|
903
|
+
/** Hidden neighbor directions in CUBE_FACES order, before the model's block rotation. */
|
|
904
|
+
cullMask?: number;
|
|
896
905
|
}
|
|
897
906
|
declare function isModelObject(obj: any): obj is ModelObject;
|
|
898
907
|
|
|
@@ -1096,11 +1105,17 @@ declare class BlockObject extends SceneObject {
|
|
|
1096
1105
|
private _instanceModel;
|
|
1097
1106
|
private _variants;
|
|
1098
1107
|
private _models;
|
|
1108
|
+
private _cullMask;
|
|
1099
1109
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1100
1110
|
init(): Promise<void>;
|
|
1101
1111
|
dispose(): void;
|
|
1102
1112
|
removeFromScene(): void;
|
|
1103
1113
|
private clearModels;
|
|
1114
|
+
private removeModels;
|
|
1115
|
+
get isOccluding(): boolean;
|
|
1116
|
+
private getModelMatrix;
|
|
1117
|
+
private getModelCullMask;
|
|
1118
|
+
setCullMask(worldMask: number): Promise<void>;
|
|
1104
1119
|
get state(): {
|
|
1105
1120
|
[key: string]: string;
|
|
1106
1121
|
};
|
|
@@ -1680,17 +1695,20 @@ declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: Triangl
|
|
|
1680
1695
|
declare function computeMorphedAttributes(object: Mesh | Line | Points): object;
|
|
1681
1696
|
|
|
1682
1697
|
interface BlockInfo {
|
|
1683
|
-
block
|
|
1698
|
+
/** Detached block data; use world or chunk setters to update stored blocks. */
|
|
1699
|
+
readonly block: Block;
|
|
1684
1700
|
object: BlockObject;
|
|
1685
1701
|
}
|
|
1686
1702
|
|
|
1687
1703
|
declare class Chunk {
|
|
1704
|
+
private readonly onBlocksChanged?;
|
|
1688
1705
|
readonly scene: MineRenderScene;
|
|
1689
1706
|
readonly x: number;
|
|
1690
1707
|
readonly y: number;
|
|
1691
1708
|
readonly z: number;
|
|
1692
|
-
private readonly
|
|
1693
|
-
|
|
1709
|
+
private readonly data;
|
|
1710
|
+
private readonly renderedBlocks;
|
|
1711
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined);
|
|
1694
1712
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1695
1713
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
1696
1714
|
getBlockAt(pos: TripleArray): Maybe<BlockInfo>;
|
|
@@ -1712,9 +1730,26 @@ declare class Chunk {
|
|
|
1712
1730
|
chunkPosToWorldPos(pos: Vector3): Vector3;
|
|
1713
1731
|
}
|
|
1714
1732
|
|
|
1733
|
+
declare class ChunkData {
|
|
1734
|
+
private readonly indices;
|
|
1735
|
+
private readonly palette;
|
|
1736
|
+
private readonly paletteIds;
|
|
1737
|
+
private readonly freeIds;
|
|
1738
|
+
private readonly nbt;
|
|
1739
|
+
get(index: number): Maybe<Block>;
|
|
1740
|
+
snapshot(index: number): Maybe<() => Block>;
|
|
1741
|
+
set(index: number, block?: Block): void;
|
|
1742
|
+
clear(): void;
|
|
1743
|
+
static isAir(block: Maybe<Block>): boolean;
|
|
1744
|
+
private static copyBlock;
|
|
1745
|
+
private static validateIndex;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1715
1748
|
declare class MineRenderWorld {
|
|
1716
1749
|
readonly scene: MineRenderScene;
|
|
1717
1750
|
private readonly _chunks;
|
|
1751
|
+
private readonly pendingCulling;
|
|
1752
|
+
private culling?;
|
|
1718
1753
|
constructor(scene: MineRenderScene);
|
|
1719
1754
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1720
1755
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
@@ -1724,6 +1759,7 @@ declare class MineRenderWorld {
|
|
|
1724
1759
|
setBlockAt(pos: TripleArray, block: Maybe<Block>): Promise<Maybe<BlockInfo>>;
|
|
1725
1760
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
1726
1761
|
clear(): Promise<void>;
|
|
1762
|
+
private updateCulling;
|
|
1727
1763
|
private getOrCreateChunkAt;
|
|
1728
1764
|
getChunkAt(pos: Vector3): Maybe<Chunk>;
|
|
1729
1765
|
static worldToScenePosition(pos: Vector3): Vector3;
|
|
@@ -1770,4 +1806,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
1770
1806
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
1771
1807
|
}
|
|
1772
1808
|
|
|
1773
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, ArchiveAssetSource, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type Block, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type ElementFace, type ElementRotation, Entities, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, EntityObject, type EntityObjectOptions, Env, type EnvProvider, type ExtractableImageData, type FromTo, Geometries, GuiLight, GuiObject, type GuiObjectOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, PersistentCache, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResponseParser, SKIN_PARTS, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createImage, estimateBytesUsed, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
|
1809
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, ArchiveAssetSource, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type Block, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type ElementFace, type ElementRotation, Entities, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, EntityObject, type EntityObjectOptions, Env, type EnvProvider, type ExtractableImageData, type FromTo, Geometries, GuiLight, GuiObject, type GuiObjectOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, 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 MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, PersistentCache, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResponseParser, SKIN_PARTS, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createImage, estimateBytesUsed, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ declare enum CubeFaceIndex {
|
|
|
39
39
|
NORTH = 5
|
|
40
40
|
}
|
|
41
41
|
declare const CUBE_FACES: CubeFace[];
|
|
42
|
+
declare const CUBE_FACE_OFFSETS: readonly [readonly [1, 0, 0], readonly [-1, 0, 0], readonly [0, 1, 0], readonly [0, -1, 0], readonly [0, 0, 1], readonly [0, 0, -1]];
|
|
42
43
|
|
|
43
44
|
interface Disposable {
|
|
44
45
|
dispose(): void;
|
|
@@ -805,6 +806,11 @@ declare class DisplayTransforms {
|
|
|
805
806
|
static apply(geometry: BufferGeometry, matrix: Matrix4): void;
|
|
806
807
|
}
|
|
807
808
|
|
|
809
|
+
declare class ModelCulling {
|
|
810
|
+
static toLocalMask(worldMask: number, rotation: Euler): number;
|
|
811
|
+
static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
|
|
812
|
+
}
|
|
813
|
+
|
|
808
814
|
declare class ModelGenerator {
|
|
809
815
|
static readonly ITEM_LAYERS: string[];
|
|
810
816
|
static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
|
|
@@ -882,6 +888,7 @@ declare class ModelObject extends SceneObject {
|
|
|
882
888
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
883
889
|
init(): Promise<void>;
|
|
884
890
|
get textureAtlas(): Maybe<TextureAtlas>;
|
|
891
|
+
get isOpaqueFullCube(): boolean;
|
|
885
892
|
protected loadTextures(): Promise<void>;
|
|
886
893
|
protected createMeshes(force?: boolean): void;
|
|
887
894
|
protected applyTextures(): void;
|
|
@@ -893,6 +900,8 @@ interface ModelObjectOptions extends SceneObjectOptions {
|
|
|
893
900
|
uvLockRotation?: TripleArray;
|
|
894
901
|
/** sRGB 0xRRGGBB colors by face tint index; omitted indices stay white. */
|
|
895
902
|
tints?: Record<number, number>;
|
|
903
|
+
/** Hidden neighbor directions in CUBE_FACES order, before the model's block rotation. */
|
|
904
|
+
cullMask?: number;
|
|
896
905
|
}
|
|
897
906
|
declare function isModelObject(obj: any): obj is ModelObject;
|
|
898
907
|
|
|
@@ -1096,11 +1105,17 @@ declare class BlockObject extends SceneObject {
|
|
|
1096
1105
|
private _instanceModel;
|
|
1097
1106
|
private _variants;
|
|
1098
1107
|
private _models;
|
|
1108
|
+
private _cullMask;
|
|
1099
1109
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1100
1110
|
init(): Promise<void>;
|
|
1101
1111
|
dispose(): void;
|
|
1102
1112
|
removeFromScene(): void;
|
|
1103
1113
|
private clearModels;
|
|
1114
|
+
private removeModels;
|
|
1115
|
+
get isOccluding(): boolean;
|
|
1116
|
+
private getModelMatrix;
|
|
1117
|
+
private getModelCullMask;
|
|
1118
|
+
setCullMask(worldMask: number): Promise<void>;
|
|
1104
1119
|
get state(): {
|
|
1105
1120
|
[key: string]: string;
|
|
1106
1121
|
};
|
|
@@ -1680,17 +1695,20 @@ declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: Triangl
|
|
|
1680
1695
|
declare function computeMorphedAttributes(object: Mesh | Line | Points): object;
|
|
1681
1696
|
|
|
1682
1697
|
interface BlockInfo {
|
|
1683
|
-
block
|
|
1698
|
+
/** Detached block data; use world or chunk setters to update stored blocks. */
|
|
1699
|
+
readonly block: Block;
|
|
1684
1700
|
object: BlockObject;
|
|
1685
1701
|
}
|
|
1686
1702
|
|
|
1687
1703
|
declare class Chunk {
|
|
1704
|
+
private readonly onBlocksChanged?;
|
|
1688
1705
|
readonly scene: MineRenderScene;
|
|
1689
1706
|
readonly x: number;
|
|
1690
1707
|
readonly y: number;
|
|
1691
1708
|
readonly z: number;
|
|
1692
|
-
private readonly
|
|
1693
|
-
|
|
1709
|
+
private readonly data;
|
|
1710
|
+
private readonly renderedBlocks;
|
|
1711
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined);
|
|
1694
1712
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1695
1713
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
1696
1714
|
getBlockAt(pos: TripleArray): Maybe<BlockInfo>;
|
|
@@ -1712,9 +1730,26 @@ declare class Chunk {
|
|
|
1712
1730
|
chunkPosToWorldPos(pos: Vector3): Vector3;
|
|
1713
1731
|
}
|
|
1714
1732
|
|
|
1733
|
+
declare class ChunkData {
|
|
1734
|
+
private readonly indices;
|
|
1735
|
+
private readonly palette;
|
|
1736
|
+
private readonly paletteIds;
|
|
1737
|
+
private readonly freeIds;
|
|
1738
|
+
private readonly nbt;
|
|
1739
|
+
get(index: number): Maybe<Block>;
|
|
1740
|
+
snapshot(index: number): Maybe<() => Block>;
|
|
1741
|
+
set(index: number, block?: Block): void;
|
|
1742
|
+
clear(): void;
|
|
1743
|
+
static isAir(block: Maybe<Block>): boolean;
|
|
1744
|
+
private static copyBlock;
|
|
1745
|
+
private static validateIndex;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1715
1748
|
declare class MineRenderWorld {
|
|
1716
1749
|
readonly scene: MineRenderScene;
|
|
1717
1750
|
private readonly _chunks;
|
|
1751
|
+
private readonly pendingCulling;
|
|
1752
|
+
private culling?;
|
|
1718
1753
|
constructor(scene: MineRenderScene);
|
|
1719
1754
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1720
1755
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
@@ -1724,6 +1759,7 @@ declare class MineRenderWorld {
|
|
|
1724
1759
|
setBlockAt(pos: TripleArray, block: Maybe<Block>): Promise<Maybe<BlockInfo>>;
|
|
1725
1760
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
1726
1761
|
clear(): Promise<void>;
|
|
1762
|
+
private updateCulling;
|
|
1727
1763
|
private getOrCreateChunkAt;
|
|
1728
1764
|
getChunkAt(pos: Vector3): Maybe<Chunk>;
|
|
1729
1765
|
static worldToScenePosition(pos: Vector3): Vector3;
|
|
@@ -1770,4 +1806,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
1770
1806
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
1771
1807
|
}
|
|
1772
1808
|
|
|
1773
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, ArchiveAssetSource, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type Block, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type ElementFace, type ElementRotation, Entities, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, EntityObject, type EntityObjectOptions, Env, type EnvProvider, type ExtractableImageData, type FromTo, Geometries, GuiLight, GuiObject, type GuiObjectOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, PersistentCache, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResponseParser, SKIN_PARTS, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createImage, estimateBytesUsed, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
|
1809
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, ArchiveAssetSource, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type Block, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, type ElementFace, type ElementRotation, Entities, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, EntityObject, type EntityObjectOptions, Env, type EnvProvider, type ExtractableImageData, type FromTo, Geometries, GuiLight, GuiObject, type GuiObjectOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, 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 MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, PersistentCache, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResponseParser, SKIN_PARTS, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createImage, estimateBytesUsed, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|