minerender 2.1.0-alpha.60 → 2.1.0-alpha.62

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.
@@ -449,7 +449,24 @@ interface ItemModel extends Model {
449
449
  textures?: ItemModelTextures;
450
450
  gui_light?: GuiLight;
451
451
  special?: SpecialItemRenderer;
452
+ tints?: ItemTintSource[];
452
453
  }
454
+ type ItemTintColor = number | TripleArray;
455
+ type ItemTintSource = {
456
+ type: "constant" | "minecraft:constant";
457
+ value: ItemTintColor;
458
+ } | {
459
+ type: "grass" | "minecraft:grass";
460
+ temperature: number;
461
+ downfall: number;
462
+ } | {
463
+ type: "dye" | "minecraft:dye" | "potion" | "minecraft:potion" | "map_color" | "minecraft:map_color" | "firework" | "minecraft:firework" | "team" | "minecraft:team";
464
+ default: ItemTintColor;
465
+ } | {
466
+ type: "custom_model_data" | "minecraft:custom_model_data";
467
+ index?: number;
468
+ default: ItemTintColor;
469
+ };
453
470
  type SpecialItemRenderer = {
454
471
  type: "chest" | "minecraft:chest";
455
472
  texture: string;
@@ -885,7 +902,7 @@ declare class DefaultBlockStates implements MinecraftAsset {
885
902
  [k: string]: BlockStatePropertyDefaults;
886
903
  }
887
904
 
888
- /** `entity-models/animations/<namespace>/<model id>.json`: vanilla's keyframe animations of one model. */
905
+ /** `entity-models/animations/<namespace>/<model id>.json`: native and sampled vanilla animation clips. */
889
906
  interface EntityAnimationFile extends MinecraftAsset {
890
907
  id: string;
891
908
  animations: Record<string, EntityAnimation>;
@@ -894,6 +911,8 @@ interface EntityAnimation {
894
911
  /** Seconds. */
895
912
  length: number;
896
913
  loop: boolean;
914
+ /** Geometry layer targeted by this clip; defaults to `main`. */
915
+ layer?: string;
897
916
  /** Part name anywhere in a layer; `root` is the layer's root part. */
898
917
  bones: Record<string, EntityAnimationBone>;
899
918
  }
@@ -931,7 +950,7 @@ declare class Entities {
931
950
  static getPassList(modelKey: BasicAssetKey): Promise<EntityModelPass[]>;
932
951
  static getEntity(modelKey: BasicAssetKey, textureKey?: BasicAssetKey, options?: EntityModelOptions): Promise<Maybe<EntityModel>>;
933
952
  /**
934
- * Vanilla's keyframe animations of a model by name, or undefined when the model or the selected version has none.
953
+ * Native and sampled vanilla clips by name, or undefined when the model or selected version has none.
935
954
  */
936
955
  static getAnimations(modelKey: BasicAssetKey): Promise<Maybe<Record<string, EntityAnimation>>>;
937
956
  static resolveTexture(modelKey: BasicAssetKey): Promise<Maybe<AssetKey>>;
@@ -974,6 +993,12 @@ declare class DisplayTransforms {
974
993
  static apply(geometry: BufferGeometry, matrix: Matrix4): void;
975
994
  }
976
995
 
996
+ declare class ItemTints {
997
+ /** Resolves preview colors from item definitions; explicit per-index colors take precedence. */
998
+ static get(model: Model, tints?: Record<number, number>): Promise<Record<number, number> | undefined>;
999
+ private static rgb;
1000
+ }
1001
+
977
1002
  declare class ModelCulling {
978
1003
  static toLocalMask(worldMask: number, rotation: Euler): number;
979
1004
  static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
@@ -1022,7 +1047,6 @@ declare class BlockStateResolver {
1022
1047
  declare class BlockTints {
1023
1048
  /** Resolves block preview colors without biome context; explicit tints take precedence. */
1024
1049
  static get(key: AssetKey | undefined, state: BlockStateProperties, model: Model, tints?: Record<number, number>): Promise<Record<number, number> | undefined>;
1025
- private static grassColor;
1026
1050
  }
1027
1051
 
1028
1052
  interface Instanceable {
@@ -1188,11 +1212,11 @@ declare class EntityAnimationPlayer {
1188
1212
  get animation(): EntityAnimation | undefined;
1189
1213
  get time(): number;
1190
1214
  /**
1191
- * Starts an animation on the named parts below each layer root. The current pose of a part becomes its default;
1192
- * bones without a matching part are skipped.
1215
+ * Starts an animation on matching named parts. Supplied baked poses are the baseline for offsets;
1216
+ * without them, the current pose is used. Stopping restores the pose from before playback.
1193
1217
  */
1194
- play(layers: Object3D[], animation: EntityAnimation, options?: EntityAnimationOptions): void;
1195
- /** Restores the default poses. Returns whether an animation was active. */
1218
+ play(layers: Object3D[], animation: EntityAnimation, options?: EntityAnimationOptions, poses?: ReadonlyMap<Object3D, EntityModelPart["pose"]>): void;
1219
+ /** Restores the poses from before playback. Returns whether an animation was active. */
1196
1220
  stop(): boolean;
1197
1221
  /** Forgets the animation without touching the parts, for parts that no longer exist. */
1198
1222
  clear(): void;
@@ -1214,7 +1238,8 @@ declare class EntityObject extends SceneObject {
1214
1238
  private scrollTicker;
1215
1239
  /** Entity age in ticks, as vanilla's `ageInTicks`; drives the scrolling render modes. */
1216
1240
  age: number;
1217
- private readonly animationPlayer;
1241
+ private readonly animationPlayers;
1242
+ private readonly partPoses;
1218
1243
  constructor(entity: EntityModel, options?: Partial<EntityObjectOptions>);
1219
1244
  init(): Promise<void>;
1220
1245
  dispose(): void;
@@ -1223,17 +1248,21 @@ declare class EntityObject extends SceneObject {
1223
1248
  private updateScrollSubscription;
1224
1249
  /** Applies the entity age to the scrolling materials; the ticker calls this 20 times per second. */
1225
1250
  private updateScroll;
1226
- /** The animation started by {@link playAnimation}, until {@link stopAnimation} or disposal. */
1251
+ /** The first active clip, until playback is stopped or the object is disposed. */
1227
1252
  get animation(): Maybe<EntityAnimation>;
1253
+ /** Clips playing together, each targeting a separate geometry layer. */
1254
+ get activeAnimations(): readonly EntityAnimation[];
1228
1255
  /** Seconds since the animation started, before looping. */
1229
1256
  get animationTime(): number;
1230
1257
  /**
1231
- * Poses the object from a keyframe animation of {@link Entities.getAnimations}, replacing the current one.
1232
- * Parts of every layer are matched by name and their current pose is the default the offsets add to.
1258
+ * Plays a clip from {@link Entities.getAnimations}, replacing all active clips.
1259
+ * Offsets apply to the baked pose in the clip's layer (`main` by default), including repeated draws of that layer.
1233
1260
  * The object owns no clock: call {@link advanceAnimation} per frame, or {@link setAnimationTime}.
1234
1261
  */
1235
1262
  playAnimation(animation: EntityAnimation, options?: EntityAnimationOptions): void;
1236
- /** Stops the animation and restores the default pose. */
1263
+ /** Plays one clip per selected geometry layer, with a shared clock and no blending between clips. */
1264
+ playAnimations(animations: readonly EntityAnimation[], options?: EntityAnimationOptions): void;
1265
+ /** Stops all clips and restores the poses from before playback. */
1237
1266
  stopAnimation(): void;
1238
1267
  /** Poses the object at an explicit time in seconds. Has no effect without an animation. */
1239
1268
  setAnimationTime(seconds: number): void;
@@ -2161,6 +2190,11 @@ declare class Skins {
2161
2190
  private static getMcProxyCapeUrl;
2162
2191
  }
2163
2192
 
2193
+ declare class Colormaps {
2194
+ /** Samples the selected resource pack's grass colormap using Minecraft's climate coordinates. */
2195
+ static grassColor(origin?: AssetKey, temperature?: number, downfall?: number): Promise<number>;
2196
+ }
2197
+
2164
2198
  declare class TextureLoader {
2165
2199
  private static readonly failedTextures;
2166
2200
  /** Reports whether image loading failed, so cached textures can be retried. */
@@ -2374,4 +2408,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
2374
2408
  forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
2375
2409
  }
2376
2410
 
2377
- 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, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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, 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 FluidSample, type FluidSampler, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiTextureLayer, 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 RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, 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 SpecialItemPart, type SpecialItemRenderer, SpecialItems, 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, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
2411
+ 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, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, 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 FluidSample, type FluidSampler, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiTextureLayer, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, 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 RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, 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 SpecialItemPart, type SpecialItemRenderer, SpecialItems, 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, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
@@ -449,7 +449,24 @@ interface ItemModel extends Model {
449
449
  textures?: ItemModelTextures;
450
450
  gui_light?: GuiLight;
451
451
  special?: SpecialItemRenderer;
452
+ tints?: ItemTintSource[];
452
453
  }
454
+ type ItemTintColor = number | TripleArray;
455
+ type ItemTintSource = {
456
+ type: "constant" | "minecraft:constant";
457
+ value: ItemTintColor;
458
+ } | {
459
+ type: "grass" | "minecraft:grass";
460
+ temperature: number;
461
+ downfall: number;
462
+ } | {
463
+ type: "dye" | "minecraft:dye" | "potion" | "minecraft:potion" | "map_color" | "minecraft:map_color" | "firework" | "minecraft:firework" | "team" | "minecraft:team";
464
+ default: ItemTintColor;
465
+ } | {
466
+ type: "custom_model_data" | "minecraft:custom_model_data";
467
+ index?: number;
468
+ default: ItemTintColor;
469
+ };
453
470
  type SpecialItemRenderer = {
454
471
  type: "chest" | "minecraft:chest";
455
472
  texture: string;
@@ -885,7 +902,7 @@ declare class DefaultBlockStates implements MinecraftAsset {
885
902
  [k: string]: BlockStatePropertyDefaults;
886
903
  }
887
904
 
888
- /** `entity-models/animations/<namespace>/<model id>.json`: vanilla's keyframe animations of one model. */
905
+ /** `entity-models/animations/<namespace>/<model id>.json`: native and sampled vanilla animation clips. */
889
906
  interface EntityAnimationFile extends MinecraftAsset {
890
907
  id: string;
891
908
  animations: Record<string, EntityAnimation>;
@@ -894,6 +911,8 @@ interface EntityAnimation {
894
911
  /** Seconds. */
895
912
  length: number;
896
913
  loop: boolean;
914
+ /** Geometry layer targeted by this clip; defaults to `main`. */
915
+ layer?: string;
897
916
  /** Part name anywhere in a layer; `root` is the layer's root part. */
898
917
  bones: Record<string, EntityAnimationBone>;
899
918
  }
@@ -931,7 +950,7 @@ declare class Entities {
931
950
  static getPassList(modelKey: BasicAssetKey): Promise<EntityModelPass[]>;
932
951
  static getEntity(modelKey: BasicAssetKey, textureKey?: BasicAssetKey, options?: EntityModelOptions): Promise<Maybe<EntityModel>>;
933
952
  /**
934
- * Vanilla's keyframe animations of a model by name, or undefined when the model or the selected version has none.
953
+ * Native and sampled vanilla clips by name, or undefined when the model or selected version has none.
935
954
  */
936
955
  static getAnimations(modelKey: BasicAssetKey): Promise<Maybe<Record<string, EntityAnimation>>>;
937
956
  static resolveTexture(modelKey: BasicAssetKey): Promise<Maybe<AssetKey>>;
@@ -974,6 +993,12 @@ declare class DisplayTransforms {
974
993
  static apply(geometry: BufferGeometry, matrix: Matrix4): void;
975
994
  }
976
995
 
996
+ declare class ItemTints {
997
+ /** Resolves preview colors from item definitions; explicit per-index colors take precedence. */
998
+ static get(model: Model, tints?: Record<number, number>): Promise<Record<number, number> | undefined>;
999
+ private static rgb;
1000
+ }
1001
+
977
1002
  declare class ModelCulling {
978
1003
  static toLocalMask(worldMask: number, rotation: Euler): number;
979
1004
  static isOpaqueFullCube(atlas: Maybe<TextureAtlas>): boolean;
@@ -1022,7 +1047,6 @@ declare class BlockStateResolver {
1022
1047
  declare class BlockTints {
1023
1048
  /** Resolves block preview colors without biome context; explicit tints take precedence. */
1024
1049
  static get(key: AssetKey | undefined, state: BlockStateProperties, model: Model, tints?: Record<number, number>): Promise<Record<number, number> | undefined>;
1025
- private static grassColor;
1026
1050
  }
1027
1051
 
1028
1052
  interface Instanceable {
@@ -1188,11 +1212,11 @@ declare class EntityAnimationPlayer {
1188
1212
  get animation(): EntityAnimation | undefined;
1189
1213
  get time(): number;
1190
1214
  /**
1191
- * Starts an animation on the named parts below each layer root. The current pose of a part becomes its default;
1192
- * bones without a matching part are skipped.
1215
+ * Starts an animation on matching named parts. Supplied baked poses are the baseline for offsets;
1216
+ * without them, the current pose is used. Stopping restores the pose from before playback.
1193
1217
  */
1194
- play(layers: Object3D[], animation: EntityAnimation, options?: EntityAnimationOptions): void;
1195
- /** Restores the default poses. Returns whether an animation was active. */
1218
+ play(layers: Object3D[], animation: EntityAnimation, options?: EntityAnimationOptions, poses?: ReadonlyMap<Object3D, EntityModelPart["pose"]>): void;
1219
+ /** Restores the poses from before playback. Returns whether an animation was active. */
1196
1220
  stop(): boolean;
1197
1221
  /** Forgets the animation without touching the parts, for parts that no longer exist. */
1198
1222
  clear(): void;
@@ -1214,7 +1238,8 @@ declare class EntityObject extends SceneObject {
1214
1238
  private scrollTicker;
1215
1239
  /** Entity age in ticks, as vanilla's `ageInTicks`; drives the scrolling render modes. */
1216
1240
  age: number;
1217
- private readonly animationPlayer;
1241
+ private readonly animationPlayers;
1242
+ private readonly partPoses;
1218
1243
  constructor(entity: EntityModel, options?: Partial<EntityObjectOptions>);
1219
1244
  init(): Promise<void>;
1220
1245
  dispose(): void;
@@ -1223,17 +1248,21 @@ declare class EntityObject extends SceneObject {
1223
1248
  private updateScrollSubscription;
1224
1249
  /** Applies the entity age to the scrolling materials; the ticker calls this 20 times per second. */
1225
1250
  private updateScroll;
1226
- /** The animation started by {@link playAnimation}, until {@link stopAnimation} or disposal. */
1251
+ /** The first active clip, until playback is stopped or the object is disposed. */
1227
1252
  get animation(): Maybe<EntityAnimation>;
1253
+ /** Clips playing together, each targeting a separate geometry layer. */
1254
+ get activeAnimations(): readonly EntityAnimation[];
1228
1255
  /** Seconds since the animation started, before looping. */
1229
1256
  get animationTime(): number;
1230
1257
  /**
1231
- * Poses the object from a keyframe animation of {@link Entities.getAnimations}, replacing the current one.
1232
- * Parts of every layer are matched by name and their current pose is the default the offsets add to.
1258
+ * Plays a clip from {@link Entities.getAnimations}, replacing all active clips.
1259
+ * Offsets apply to the baked pose in the clip's layer (`main` by default), including repeated draws of that layer.
1233
1260
  * The object owns no clock: call {@link advanceAnimation} per frame, or {@link setAnimationTime}.
1234
1261
  */
1235
1262
  playAnimation(animation: EntityAnimation, options?: EntityAnimationOptions): void;
1236
- /** Stops the animation and restores the default pose. */
1263
+ /** Plays one clip per selected geometry layer, with a shared clock and no blending between clips. */
1264
+ playAnimations(animations: readonly EntityAnimation[], options?: EntityAnimationOptions): void;
1265
+ /** Stops all clips and restores the poses from before playback. */
1237
1266
  stopAnimation(): void;
1238
1267
  /** Poses the object at an explicit time in seconds. Has no effect without an animation. */
1239
1268
  setAnimationTime(seconds: number): void;
@@ -2161,6 +2190,11 @@ declare class Skins {
2161
2190
  private static getMcProxyCapeUrl;
2162
2191
  }
2163
2192
 
2193
+ declare class Colormaps {
2194
+ /** Samples the selected resource pack's grass colormap using Minecraft's climate coordinates. */
2195
+ static grassColor(origin?: AssetKey, temperature?: number, downfall?: number): Promise<number>;
2196
+ }
2197
+
2164
2198
  declare class TextureLoader {
2165
2199
  private static readonly failedTextures;
2166
2200
  /** Reports whether image loading failed, so cached textures can be retried. */
@@ -2374,4 +2408,4 @@ declare class NodeCache extends PersistentCache<LocalStorage> {
2374
2408
  forEach<T>(callback: (v: T, k: string) => void): Promise<void>;
2375
2409
  }
2376
2410
 
2377
- 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, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, 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, 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 FluidSample, type FluidSampler, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiTextureLayer, 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 RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, 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 SpecialItemPart, type SpecialItemRenderer, SpecialItems, 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, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
2411
+ 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, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, 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 FluidSample, type FluidSampler, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiTextureLayer, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, 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 RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, 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 SpecialItemPart, type SpecialItemRenderer, SpecialItems, 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, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, registerNodeEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };