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