minerender 2.1.0-alpha.50 → 2.1.0-alpha.51

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.
@@ -818,7 +818,11 @@ declare class ModelCulling {
818
818
 
819
819
  declare class ModelGenerator {
820
820
  static readonly ITEM_LAYERS: string[];
821
- static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
821
+ /**
822
+ * Front and back faces plus one zero-thickness side face per run of texels that border a transparent texel,
823
+ * like vanilla's ItemModelGenerator. Pass the pixels of a single (first) animation frame.
824
+ */
825
+ static generateItemModel(imageData: Pick<ImageData$1, "width" | "height" | "data">, layer: string): ModelElement[];
822
826
  }
823
827
 
824
828
  declare class ModelMerger {
@@ -957,6 +961,7 @@ declare const SKIN_PARTS: SkinPart[];
957
961
  type CapeLayout = "minecraft" | "optifine" | "labymod";
958
962
  declare const capeTextureSizes: Record<CapeLayout, DoubleArray>;
959
963
 
964
+ /** A player model facing +Z. Left and right parts are the player's own: left is +X, right is -X. */
960
965
  declare class SkinObject extends SceneObject {
961
966
  readonly options: SkinObjectOptions;
962
967
  private slim;
@@ -818,7 +818,11 @@ declare class ModelCulling {
818
818
 
819
819
  declare class ModelGenerator {
820
820
  static readonly ITEM_LAYERS: string[];
821
- static generateItemModel(imageData: ImageData$1, layer: string): ModelElement[];
821
+ /**
822
+ * Front and back faces plus one zero-thickness side face per run of texels that border a transparent texel,
823
+ * like vanilla's ItemModelGenerator. Pass the pixels of a single (first) animation frame.
824
+ */
825
+ static generateItemModel(imageData: Pick<ImageData$1, "width" | "height" | "data">, layer: string): ModelElement[];
822
826
  }
823
827
 
824
828
  declare class ModelMerger {
@@ -957,6 +961,7 @@ declare const SKIN_PARTS: SkinPart[];
957
961
  type CapeLayout = "minecraft" | "optifine" | "labymod";
958
962
  declare const capeTextureSizes: Record<CapeLayout, DoubleArray>;
959
963
 
964
+ /** A player model facing +Z. Left and right parts are the player's own: left is +X, right is -X. */
960
965
  declare class SkinObject extends SceneObject {
961
966
  readonly options: SkinObjectOptions;
962
967
  private slim;