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.
@@ -726,6 +726,7 @@ interface EntityModelFile extends MinecraftAsset {
726
726
  }
727
727
  interface EntityModelLayer {
728
728
  texture: [number, number];
729
+ textureLocation?: string;
729
730
  root: EntityModelPart;
730
731
  }
731
732
  interface EntityModelPart {
@@ -726,6 +726,7 @@ interface EntityModelFile extends MinecraftAsset {
726
726
  }
727
727
  interface EntityModelLayer {
728
728
  texture: [number, number];
729
+ textureLocation?: string;
729
730
  root: EntityModelPart;
730
731
  }
731
732
  interface EntityModelPart {
@@ -2890,6 +2890,8 @@ var Entities = class {
2890
2890
  if (textureKey) {
2891
2891
  const path2 = isAssetKey(textureKey) ? textureKey.getFullPath() : textureKey.path;
2892
2892
  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);
2893
+ } else if (layer.textureLocation !== void 0) {
2894
+ texture = AssetKey.parse("textures", layer.textureLocation.replace(/^([^:]+:)?textures\//, "$1"));
2893
2895
  } else {
2894
2896
  texture = await this.resolveTexture(modelKey);
2895
2897
  }