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/browser/index.d.mts
CHANGED
|
@@ -38,6 +38,7 @@ declare enum CubeFaceIndex {
|
|
|
38
38
|
NORTH = 5
|
|
39
39
|
}
|
|
40
40
|
declare const CUBE_FACES: CubeFace[];
|
|
41
|
+
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]];
|
|
41
42
|
|
|
42
43
|
interface Disposable {
|
|
43
44
|
dispose(): void;
|
|
@@ -804,6 +805,11 @@ declare class DisplayTransforms {
|
|
|
804
805
|
static apply(geometry: BufferGeometry, matrix: Matrix4): void;
|
|
805
806
|
}
|
|
806
807
|
|
|
808
|
+
declare class ModelCulling {
|
|
809
|
+
static toLocalMask(worldMask: number, rotation: Euler): number;
|
|
810
|
+
static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
|
|
811
|
+
}
|
|
812
|
+
|
|
807
813
|
declare class ModelGenerator {
|
|
808
814
|
static readonly ITEM_LAYERS: string[];
|
|
809
815
|
static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
|
|
@@ -881,6 +887,7 @@ declare class ModelObject extends SceneObject {
|
|
|
881
887
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
882
888
|
init(): Promise<void>;
|
|
883
889
|
get textureAtlas(): Maybe<TextureAtlas>;
|
|
890
|
+
get isOpaqueFullCube(): boolean;
|
|
884
891
|
protected loadTextures(): Promise<void>;
|
|
885
892
|
protected createMeshes(force?: boolean): void;
|
|
886
893
|
protected applyTextures(): void;
|
|
@@ -892,6 +899,8 @@ interface ModelObjectOptions extends SceneObjectOptions {
|
|
|
892
899
|
uvLockRotation?: TripleArray;
|
|
893
900
|
/** sRGB 0xRRGGBB colors by face tint index; omitted indices stay white. */
|
|
894
901
|
tints?: Record<number, number>;
|
|
902
|
+
/** Hidden neighbor directions in CUBE_FACES order, before the model's block rotation. */
|
|
903
|
+
cullMask?: number;
|
|
895
904
|
}
|
|
896
905
|
declare function isModelObject(obj: any): obj is ModelObject;
|
|
897
906
|
|
|
@@ -1095,11 +1104,17 @@ declare class BlockObject extends SceneObject {
|
|
|
1095
1104
|
private _instanceModel;
|
|
1096
1105
|
private _variants;
|
|
1097
1106
|
private _models;
|
|
1107
|
+
private _cullMask;
|
|
1098
1108
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1099
1109
|
init(): Promise<void>;
|
|
1100
1110
|
dispose(): void;
|
|
1101
1111
|
removeFromScene(): void;
|
|
1102
1112
|
private clearModels;
|
|
1113
|
+
private removeModels;
|
|
1114
|
+
get isOccluding(): boolean;
|
|
1115
|
+
private getModelMatrix;
|
|
1116
|
+
private getModelCullMask;
|
|
1117
|
+
setCullMask(worldMask: number): Promise<void>;
|
|
1103
1118
|
get state(): {
|
|
1104
1119
|
[key: string]: string;
|
|
1105
1120
|
};
|
|
@@ -1679,17 +1694,20 @@ declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: Triangl
|
|
|
1679
1694
|
declare function computeMorphedAttributes(object: Mesh | Line | Points): object;
|
|
1680
1695
|
|
|
1681
1696
|
interface BlockInfo {
|
|
1682
|
-
block
|
|
1697
|
+
/** Detached block data; use world or chunk setters to update stored blocks. */
|
|
1698
|
+
readonly block: Block;
|
|
1683
1699
|
object: BlockObject;
|
|
1684
1700
|
}
|
|
1685
1701
|
|
|
1686
1702
|
declare class Chunk {
|
|
1703
|
+
private readonly onBlocksChanged?;
|
|
1687
1704
|
readonly scene: MineRenderScene;
|
|
1688
1705
|
readonly x: number;
|
|
1689
1706
|
readonly y: number;
|
|
1690
1707
|
readonly z: number;
|
|
1691
|
-
private readonly
|
|
1692
|
-
|
|
1708
|
+
private readonly data;
|
|
1709
|
+
private readonly renderedBlocks;
|
|
1710
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined);
|
|
1693
1711
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1694
1712
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
1695
1713
|
getBlockAt(pos: TripleArray): Maybe<BlockInfo>;
|
|
@@ -1711,9 +1729,26 @@ declare class Chunk {
|
|
|
1711
1729
|
chunkPosToWorldPos(pos: Vector3): Vector3;
|
|
1712
1730
|
}
|
|
1713
1731
|
|
|
1732
|
+
declare class ChunkData {
|
|
1733
|
+
private readonly indices;
|
|
1734
|
+
private readonly palette;
|
|
1735
|
+
private readonly paletteIds;
|
|
1736
|
+
private readonly freeIds;
|
|
1737
|
+
private readonly nbt;
|
|
1738
|
+
get(index: number): Maybe<Block>;
|
|
1739
|
+
snapshot(index: number): Maybe<() => Block>;
|
|
1740
|
+
set(index: number, block?: Block): void;
|
|
1741
|
+
clear(): void;
|
|
1742
|
+
static isAir(block: Maybe<Block>): boolean;
|
|
1743
|
+
private static copyBlock;
|
|
1744
|
+
private static validateIndex;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1714
1747
|
declare class MineRenderWorld {
|
|
1715
1748
|
readonly scene: MineRenderScene;
|
|
1716
1749
|
private readonly _chunks;
|
|
1750
|
+
private readonly pendingCulling;
|
|
1751
|
+
private culling?;
|
|
1717
1752
|
constructor(scene: MineRenderScene);
|
|
1718
1753
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1719
1754
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
@@ -1723,6 +1758,7 @@ declare class MineRenderWorld {
|
|
|
1723
1758
|
setBlockAt(pos: TripleArray, block: Maybe<Block>): Promise<Maybe<BlockInfo>>;
|
|
1724
1759
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
1725
1760
|
clear(): Promise<void>;
|
|
1761
|
+
private updateCulling;
|
|
1726
1762
|
private getOrCreateChunkAt;
|
|
1727
1763
|
getChunkAt(pos: Vector3): Maybe<Chunk>;
|
|
1728
1764
|
static worldToScenePosition(pos: Vector3): Vector3;
|
|
@@ -1767,4 +1803,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
1767
1803
|
*/
|
|
1768
1804
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
1769
1805
|
|
|
1770
|
-
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, BrowserCache, BrowserEnv, 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, 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, probeImageSize, registerBrowserEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
|
1806
|
+
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, BrowserCache, BrowserEnv, 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, 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, probeImageSize, registerBrowserEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ declare enum CubeFaceIndex {
|
|
|
38
38
|
NORTH = 5
|
|
39
39
|
}
|
|
40
40
|
declare const CUBE_FACES: CubeFace[];
|
|
41
|
+
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]];
|
|
41
42
|
|
|
42
43
|
interface Disposable {
|
|
43
44
|
dispose(): void;
|
|
@@ -804,6 +805,11 @@ declare class DisplayTransforms {
|
|
|
804
805
|
static apply(geometry: BufferGeometry, matrix: Matrix4): void;
|
|
805
806
|
}
|
|
806
807
|
|
|
808
|
+
declare class ModelCulling {
|
|
809
|
+
static toLocalMask(worldMask: number, rotation: Euler): number;
|
|
810
|
+
static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
|
|
811
|
+
}
|
|
812
|
+
|
|
807
813
|
declare class ModelGenerator {
|
|
808
814
|
static readonly ITEM_LAYERS: string[];
|
|
809
815
|
static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
|
|
@@ -881,6 +887,7 @@ declare class ModelObject extends SceneObject {
|
|
|
881
887
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
882
888
|
init(): Promise<void>;
|
|
883
889
|
get textureAtlas(): Maybe<TextureAtlas>;
|
|
890
|
+
get isOpaqueFullCube(): boolean;
|
|
884
891
|
protected loadTextures(): Promise<void>;
|
|
885
892
|
protected createMeshes(force?: boolean): void;
|
|
886
893
|
protected applyTextures(): void;
|
|
@@ -892,6 +899,8 @@ interface ModelObjectOptions extends SceneObjectOptions {
|
|
|
892
899
|
uvLockRotation?: TripleArray;
|
|
893
900
|
/** sRGB 0xRRGGBB colors by face tint index; omitted indices stay white. */
|
|
894
901
|
tints?: Record<number, number>;
|
|
902
|
+
/** Hidden neighbor directions in CUBE_FACES order, before the model's block rotation. */
|
|
903
|
+
cullMask?: number;
|
|
895
904
|
}
|
|
896
905
|
declare function isModelObject(obj: any): obj is ModelObject;
|
|
897
906
|
|
|
@@ -1095,11 +1104,17 @@ declare class BlockObject extends SceneObject {
|
|
|
1095
1104
|
private _instanceModel;
|
|
1096
1105
|
private _variants;
|
|
1097
1106
|
private _models;
|
|
1107
|
+
private _cullMask;
|
|
1098
1108
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1099
1109
|
init(): Promise<void>;
|
|
1100
1110
|
dispose(): void;
|
|
1101
1111
|
removeFromScene(): void;
|
|
1102
1112
|
private clearModels;
|
|
1113
|
+
private removeModels;
|
|
1114
|
+
get isOccluding(): boolean;
|
|
1115
|
+
private getModelMatrix;
|
|
1116
|
+
private getModelCullMask;
|
|
1117
|
+
setCullMask(worldMask: number): Promise<void>;
|
|
1103
1118
|
get state(): {
|
|
1104
1119
|
[key: string]: string;
|
|
1105
1120
|
};
|
|
@@ -1679,17 +1694,20 @@ declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: Triangl
|
|
|
1679
1694
|
declare function computeMorphedAttributes(object: Mesh | Line | Points): object;
|
|
1680
1695
|
|
|
1681
1696
|
interface BlockInfo {
|
|
1682
|
-
block
|
|
1697
|
+
/** Detached block data; use world or chunk setters to update stored blocks. */
|
|
1698
|
+
readonly block: Block;
|
|
1683
1699
|
object: BlockObject;
|
|
1684
1700
|
}
|
|
1685
1701
|
|
|
1686
1702
|
declare class Chunk {
|
|
1703
|
+
private readonly onBlocksChanged?;
|
|
1687
1704
|
readonly scene: MineRenderScene;
|
|
1688
1705
|
readonly x: number;
|
|
1689
1706
|
readonly y: number;
|
|
1690
1707
|
readonly z: number;
|
|
1691
|
-
private readonly
|
|
1692
|
-
|
|
1708
|
+
private readonly data;
|
|
1709
|
+
private readonly renderedBlocks;
|
|
1710
|
+
constructor(scene: MineRenderScene, x: number, y: number, z: number, onBlocksChanged?: ((positions: Vector3[]) => Promise<void>) | undefined);
|
|
1693
1711
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1694
1712
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
1695
1713
|
getBlockAt(pos: TripleArray): Maybe<BlockInfo>;
|
|
@@ -1711,9 +1729,26 @@ declare class Chunk {
|
|
|
1711
1729
|
chunkPosToWorldPos(pos: Vector3): Vector3;
|
|
1712
1730
|
}
|
|
1713
1731
|
|
|
1732
|
+
declare class ChunkData {
|
|
1733
|
+
private readonly indices;
|
|
1734
|
+
private readonly palette;
|
|
1735
|
+
private readonly paletteIds;
|
|
1736
|
+
private readonly freeIds;
|
|
1737
|
+
private readonly nbt;
|
|
1738
|
+
get(index: number): Maybe<Block>;
|
|
1739
|
+
snapshot(index: number): Maybe<() => Block>;
|
|
1740
|
+
set(index: number, block?: Block): void;
|
|
1741
|
+
clear(): void;
|
|
1742
|
+
static isAir(block: Maybe<Block>): boolean;
|
|
1743
|
+
private static copyBlock;
|
|
1744
|
+
private static validateIndex;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1714
1747
|
declare class MineRenderWorld {
|
|
1715
1748
|
readonly scene: MineRenderScene;
|
|
1716
1749
|
private readonly _chunks;
|
|
1750
|
+
private readonly pendingCulling;
|
|
1751
|
+
private culling?;
|
|
1717
1752
|
constructor(scene: MineRenderScene);
|
|
1718
1753
|
getBlockAt(x: number, y: number, z: number): Maybe<BlockInfo>;
|
|
1719
1754
|
getBlockAt(pos: Vector3): Maybe<BlockInfo>;
|
|
@@ -1723,6 +1758,7 @@ declare class MineRenderWorld {
|
|
|
1723
1758
|
setBlockAt(pos: TripleArray, block: Maybe<Block>): Promise<Maybe<BlockInfo>>;
|
|
1724
1759
|
placeMultiBlock(multiblock: MultiBlockStructure, useBatches?: boolean, executor?: BatchedExecutor): Promise<void>;
|
|
1725
1760
|
clear(): Promise<void>;
|
|
1761
|
+
private updateCulling;
|
|
1726
1762
|
private getOrCreateChunkAt;
|
|
1727
1763
|
getChunkAt(pos: Vector3): Maybe<Chunk>;
|
|
1728
1764
|
static worldToScenePosition(pos: Vector3): Vector3;
|
|
@@ -1767,4 +1803,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
1767
1803
|
*/
|
|
1768
1804
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
1769
1805
|
|
|
1770
|
-
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, BrowserCache, BrowserEnv, 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, 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, probeImageSize, registerBrowserEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
|
1806
|
+
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, BrowserCache, BrowserEnv, 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, 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, probeImageSize, registerBrowserEnv, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|