minerender 2.1.0-alpha.43 → 2.1.0-alpha.44
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 +44 -3
- package/dist/browser/index.d.ts +44 -3
- package/dist/browser/index.js +5393 -4490
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +4975 -4070
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +75720 -74553
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +44 -3
- package/dist/node/index.d.ts +44 -3
- package/dist/node/index.js +5438 -4531
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +5016 -4111
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { EffectComposer } from 'postprocessing';
|
|
|
11
11
|
import { LocalStorage } from 'node-persist';
|
|
12
12
|
|
|
13
13
|
interface AnimatorFunction {
|
|
14
|
-
(): void;
|
|
14
|
+
(): boolean | void;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
declare enum Axis {
|
|
@@ -525,6 +525,7 @@ declare class TextureAtlas implements Disposable {
|
|
|
525
525
|
};
|
|
526
526
|
readonly hasTransparency: boolean;
|
|
527
527
|
ticker?: number;
|
|
528
|
+
private readonly subscribers;
|
|
528
529
|
constructor(model: Model, image: CanvasImage, sizes: {
|
|
529
530
|
[texture: string]: DoubleArray;
|
|
530
531
|
}, positions: {
|
|
@@ -532,6 +533,8 @@ declare class TextureAtlas implements Disposable {
|
|
|
532
533
|
}, hasAnimation: boolean, animatorFunctions: {
|
|
533
534
|
[p: string]: AnimatorFunction;
|
|
534
535
|
}, hasTransparency: boolean);
|
|
536
|
+
/** Calls subscribers when an animation frame changes; unused atlases do not tick. */
|
|
537
|
+
subscribe(callback: () => void): () => void;
|
|
535
538
|
getData(texture: string): ImageData$1;
|
|
536
539
|
dispose(): void;
|
|
537
540
|
}
|
|
@@ -890,7 +893,10 @@ declare class ModelObject extends SceneObject {
|
|
|
890
893
|
readonly isModelObject: true;
|
|
891
894
|
static readonly DEFAULT_OPTIONS: ModelObjectOptions;
|
|
892
895
|
readonly options: ModelObjectOptions;
|
|
893
|
-
|
|
896
|
+
protected atlas?: TextureAtlas;
|
|
897
|
+
private atlasMaterial?;
|
|
898
|
+
private atlasTexture?;
|
|
899
|
+
private unsubscribeAtlas?;
|
|
894
900
|
blockParent: Maybe<BlockObject>;
|
|
895
901
|
private meshesCreated;
|
|
896
902
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -900,6 +906,10 @@ declare class ModelObject extends SceneObject {
|
|
|
900
906
|
protected loadTextures(): Promise<void>;
|
|
901
907
|
protected createMeshes(force?: boolean): void;
|
|
902
908
|
protected applyTextures(): void;
|
|
909
|
+
private updateAnimationSubscription;
|
|
910
|
+
nextInstance(): InstanceReference<SceneObject>;
|
|
911
|
+
removeInstanceAt(index: number): void;
|
|
912
|
+
disposeAndRemoveAllChildren(): void;
|
|
903
913
|
}
|
|
904
914
|
interface ModelObjectOptions extends SceneObjectOptions {
|
|
905
915
|
/** Minecraft display pose applied around the model center, before scene transforms. */
|
|
@@ -1102,6 +1112,17 @@ declare class SceneObject extends Object3D<Object3DEventMap & {
|
|
|
1102
1112
|
}
|
|
1103
1113
|
declare function isSceneObject(obj: any): obj is SceneObject;
|
|
1104
1114
|
|
|
1115
|
+
type FluidKind = "water" | "lava";
|
|
1116
|
+
declare function getFluidKind(key?: AssetKey): FluidKind | undefined;
|
|
1117
|
+
interface FluidSample {
|
|
1118
|
+
fluid?: FluidKind;
|
|
1119
|
+
level?: number;
|
|
1120
|
+
solid?: boolean;
|
|
1121
|
+
}
|
|
1122
|
+
type FluidSampler = (x: number, y: number, z: number) => FluidSample;
|
|
1123
|
+
/** Builds centered fluid faces with material groups 0 (still) and 1 (flowing). */
|
|
1124
|
+
declare function createFluidGeometry(kind: FluidKind, sample: FluidSampler): BufferGeometry;
|
|
1125
|
+
|
|
1105
1126
|
declare class BlockObject extends SceneObject {
|
|
1106
1127
|
readonly blockState: BlockState;
|
|
1107
1128
|
readonly isBlockObject: true;
|
|
@@ -1116,6 +1137,8 @@ declare class BlockObject extends SceneObject {
|
|
|
1116
1137
|
private _variants;
|
|
1117
1138
|
private _models;
|
|
1118
1139
|
private _cullMask;
|
|
1140
|
+
private _fluidKey?;
|
|
1141
|
+
private _fluidSampler?;
|
|
1119
1142
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1120
1143
|
init(): Promise<void>;
|
|
1121
1144
|
dispose(): void;
|
|
@@ -1129,6 +1152,9 @@ declare class BlockObject extends SceneObject {
|
|
|
1129
1152
|
get state(): {
|
|
1130
1153
|
[key: string]: string;
|
|
1131
1154
|
};
|
|
1155
|
+
get fluidKind(): FluidKind | undefined;
|
|
1156
|
+
/** Refreshes fluid surfaces from relative neighbors; standalone previews use air around the block. */
|
|
1157
|
+
updateFluid(sample?: FluidSampler): Promise<void>;
|
|
1132
1158
|
nextInstance(): InstanceReference<SceneObject>;
|
|
1133
1159
|
protected mapStateToVariant(state: BlockStateProperties): Promise<BlockStateVariant[]>;
|
|
1134
1160
|
recreateModels(): Promise<void>;
|
|
@@ -1152,6 +1178,21 @@ interface BlockObjectOptions extends ModelObjectOptions {
|
|
|
1152
1178
|
}
|
|
1153
1179
|
declare function isBlockObject(obj: any): obj is BlockObject;
|
|
1154
1180
|
|
|
1181
|
+
/** Saved fluid levels and solid neighbors determine the geometry shared by an instance pool. */
|
|
1182
|
+
declare function sampleFluid(kind: FluidKind, sample: FluidSampler): {
|
|
1183
|
+
key: string;
|
|
1184
|
+
sample: FluidSampler;
|
|
1185
|
+
};
|
|
1186
|
+
declare class FluidModelObject extends ModelObject {
|
|
1187
|
+
readonly kind: FluidKind;
|
|
1188
|
+
private readonly sample;
|
|
1189
|
+
private geometry?;
|
|
1190
|
+
constructor(kind: FluidKind, sample: FluidSampler, origin: AssetKey, options?: Partial<ModelObjectOptions>);
|
|
1191
|
+
protected createMeshes(): void;
|
|
1192
|
+
protected applyTextures(): void;
|
|
1193
|
+
disposeAndRemoveAllChildren(): void;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1155
1196
|
interface MultiBlockStructure {
|
|
1156
1197
|
readonly size: TripleArray;
|
|
1157
1198
|
readonly blocks: MultiBlockBlock[];
|
|
@@ -1939,4 +1980,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
1939
1980
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
1940
1981
|
}
|
|
1941
1982
|
|
|
1942
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, 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, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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 MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, 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, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, 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 };
|
|
1983
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, 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, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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 FluidKind, FluidModelObject, type FluidSample, type FluidSampler, 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 MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, 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, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, 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, createFluidGeometry, createImage, estimateBytesUsed, getFluidKind, 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, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { EffectComposer } from 'postprocessing';
|
|
|
11
11
|
import { LocalStorage } from 'node-persist';
|
|
12
12
|
|
|
13
13
|
interface AnimatorFunction {
|
|
14
|
-
(): void;
|
|
14
|
+
(): boolean | void;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
declare enum Axis {
|
|
@@ -525,6 +525,7 @@ declare class TextureAtlas implements Disposable {
|
|
|
525
525
|
};
|
|
526
526
|
readonly hasTransparency: boolean;
|
|
527
527
|
ticker?: number;
|
|
528
|
+
private readonly subscribers;
|
|
528
529
|
constructor(model: Model, image: CanvasImage, sizes: {
|
|
529
530
|
[texture: string]: DoubleArray;
|
|
530
531
|
}, positions: {
|
|
@@ -532,6 +533,8 @@ declare class TextureAtlas implements Disposable {
|
|
|
532
533
|
}, hasAnimation: boolean, animatorFunctions: {
|
|
533
534
|
[p: string]: AnimatorFunction;
|
|
534
535
|
}, hasTransparency: boolean);
|
|
536
|
+
/** Calls subscribers when an animation frame changes; unused atlases do not tick. */
|
|
537
|
+
subscribe(callback: () => void): () => void;
|
|
535
538
|
getData(texture: string): ImageData$1;
|
|
536
539
|
dispose(): void;
|
|
537
540
|
}
|
|
@@ -890,7 +893,10 @@ declare class ModelObject extends SceneObject {
|
|
|
890
893
|
readonly isModelObject: true;
|
|
891
894
|
static readonly DEFAULT_OPTIONS: ModelObjectOptions;
|
|
892
895
|
readonly options: ModelObjectOptions;
|
|
893
|
-
|
|
896
|
+
protected atlas?: TextureAtlas;
|
|
897
|
+
private atlasMaterial?;
|
|
898
|
+
private atlasTexture?;
|
|
899
|
+
private unsubscribeAtlas?;
|
|
894
900
|
blockParent: Maybe<BlockObject>;
|
|
895
901
|
private meshesCreated;
|
|
896
902
|
constructor(originalModel: Model, options?: Partial<ModelObjectOptions>);
|
|
@@ -900,6 +906,10 @@ declare class ModelObject extends SceneObject {
|
|
|
900
906
|
protected loadTextures(): Promise<void>;
|
|
901
907
|
protected createMeshes(force?: boolean): void;
|
|
902
908
|
protected applyTextures(): void;
|
|
909
|
+
private updateAnimationSubscription;
|
|
910
|
+
nextInstance(): InstanceReference<SceneObject>;
|
|
911
|
+
removeInstanceAt(index: number): void;
|
|
912
|
+
disposeAndRemoveAllChildren(): void;
|
|
903
913
|
}
|
|
904
914
|
interface ModelObjectOptions extends SceneObjectOptions {
|
|
905
915
|
/** Minecraft display pose applied around the model center, before scene transforms. */
|
|
@@ -1102,6 +1112,17 @@ declare class SceneObject extends Object3D<Object3DEventMap & {
|
|
|
1102
1112
|
}
|
|
1103
1113
|
declare function isSceneObject(obj: any): obj is SceneObject;
|
|
1104
1114
|
|
|
1115
|
+
type FluidKind = "water" | "lava";
|
|
1116
|
+
declare function getFluidKind(key?: AssetKey): FluidKind | undefined;
|
|
1117
|
+
interface FluidSample {
|
|
1118
|
+
fluid?: FluidKind;
|
|
1119
|
+
level?: number;
|
|
1120
|
+
solid?: boolean;
|
|
1121
|
+
}
|
|
1122
|
+
type FluidSampler = (x: number, y: number, z: number) => FluidSample;
|
|
1123
|
+
/** Builds centered fluid faces with material groups 0 (still) and 1 (flowing). */
|
|
1124
|
+
declare function createFluidGeometry(kind: FluidKind, sample: FluidSampler): BufferGeometry;
|
|
1125
|
+
|
|
1105
1126
|
declare class BlockObject extends SceneObject {
|
|
1106
1127
|
readonly blockState: BlockState;
|
|
1107
1128
|
readonly isBlockObject: true;
|
|
@@ -1116,6 +1137,8 @@ declare class BlockObject extends SceneObject {
|
|
|
1116
1137
|
private _variants;
|
|
1117
1138
|
private _models;
|
|
1118
1139
|
private _cullMask;
|
|
1140
|
+
private _fluidKey?;
|
|
1141
|
+
private _fluidSampler?;
|
|
1119
1142
|
constructor(blockState: BlockState, options?: Partial<BlockObjectOptions>);
|
|
1120
1143
|
init(): Promise<void>;
|
|
1121
1144
|
dispose(): void;
|
|
@@ -1129,6 +1152,9 @@ declare class BlockObject extends SceneObject {
|
|
|
1129
1152
|
get state(): {
|
|
1130
1153
|
[key: string]: string;
|
|
1131
1154
|
};
|
|
1155
|
+
get fluidKind(): FluidKind | undefined;
|
|
1156
|
+
/** Refreshes fluid surfaces from relative neighbors; standalone previews use air around the block. */
|
|
1157
|
+
updateFluid(sample?: FluidSampler): Promise<void>;
|
|
1132
1158
|
nextInstance(): InstanceReference<SceneObject>;
|
|
1133
1159
|
protected mapStateToVariant(state: BlockStateProperties): Promise<BlockStateVariant[]>;
|
|
1134
1160
|
recreateModels(): Promise<void>;
|
|
@@ -1152,6 +1178,21 @@ interface BlockObjectOptions extends ModelObjectOptions {
|
|
|
1152
1178
|
}
|
|
1153
1179
|
declare function isBlockObject(obj: any): obj is BlockObject;
|
|
1154
1180
|
|
|
1181
|
+
/** Saved fluid levels and solid neighbors determine the geometry shared by an instance pool. */
|
|
1182
|
+
declare function sampleFluid(kind: FluidKind, sample: FluidSampler): {
|
|
1183
|
+
key: string;
|
|
1184
|
+
sample: FluidSampler;
|
|
1185
|
+
};
|
|
1186
|
+
declare class FluidModelObject extends ModelObject {
|
|
1187
|
+
readonly kind: FluidKind;
|
|
1188
|
+
private readonly sample;
|
|
1189
|
+
private geometry?;
|
|
1190
|
+
constructor(kind: FluidKind, sample: FluidSampler, origin: AssetKey, options?: Partial<ModelObjectOptions>);
|
|
1191
|
+
protected createMeshes(): void;
|
|
1192
|
+
protected applyTextures(): void;
|
|
1193
|
+
disposeAndRemoveAllChildren(): void;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1155
1196
|
interface MultiBlockStructure {
|
|
1156
1197
|
readonly size: TripleArray;
|
|
1157
1198
|
readonly blocks: MultiBlockBlock[];
|
|
@@ -1939,4 +1980,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
|
|
|
1939
1980
|
forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
|
|
1940
1981
|
}
|
|
1941
1982
|
|
|
1942
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, 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, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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 MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, 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, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, 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 };
|
|
1983
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, 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, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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 FluidKind, FluidModelObject, type FluidSample, type FluidSampler, 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 MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, NodeCache, NodeEnv, OrbitControls, 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, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, 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, createFluidGeometry, createImage, estimateBytesUsed, getFluidKind, 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, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode };
|