minerender 2.1.0-alpha.25 → 2.1.0-alpha.26

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.
@@ -725,6 +725,7 @@ interface EntityModelFile extends MinecraftAsset {
725
725
  }
726
726
  interface EntityModelLayer {
727
727
  texture: [number, number];
728
+ textureLocation?: string;
728
729
  root: EntityModelPart;
729
730
  }
730
731
  interface EntityModelPart {
@@ -725,6 +725,7 @@ interface EntityModelFile extends MinecraftAsset {
725
725
  }
726
726
  interface EntityModelLayer {
727
727
  texture: [number, number];
728
+ textureLocation?: string;
728
729
  root: EntityModelPart;
729
730
  }
730
731
  interface EntityModelPart {
@@ -2849,6 +2849,8 @@ var Entities = class {
2849
2849
  if (textureKey) {
2850
2850
  const path2 = isAssetKey(textureKey) ? textureKey.getFullPath() : textureKey.path;
2851
2851
  texture = isAssetKey(textureKey) && textureKey.assetType === "textures" && path2.startsWith("entity/") ? textureKey : new AssetKey(textureKey.namespace, path2, "textures", "entity", "assets", ".png", isAssetKey(textureKey) ? textureKey.root : void 0);
2852
+ } else if (layer.textureLocation !== void 0) {
2853
+ texture = AssetKey.parse("textures", layer.textureLocation.replace(/^([^:]+:)?textures\//, "$1"));
2852
2854
  } else {
2853
2855
  texture = await this.resolveTexture(modelKey);
2854
2856
  }