Class PackZipper

java.lang.Object
kr.toxicity.model.api.pack.PackZipper

public final class PackZipper extends Object
Manages the assembly and zipping of resource pack contents.

This class coordinates the collection of assets across different overlays (default, legacy, modern) and prepares the data for final pack generation.

Since:
1.15.2
  • Constructor Details

    • PackZipper

      public PackZipper()
  • Method Details

    • zipper

      @NotNull public static @NotNull PackZipper zipper()
      Creates a new PackZipper instance.
      Returns:
      a new PackZipper
      Since:
      1.15.2
    • assets

      @NotNull public @NotNull PackAssets assets()
      Retrieves the default assets collection.
      Returns:
      the default assets
      Since:
      1.15.2
    • legacy

      @NotNull public @NotNull PackAssets legacy()
      Retrieves the legacy assets collection.
      Returns:
      the legacy assets
      Since:
      1.15.2
    • modern

      @NotNull public @NotNull PackAssets modern()
      Retrieves the modern assets' collection.
      Returns:
      the modern assets
      Since:
      1.15.2
    • overlay

      @NotNull public @NotNull PackAssets overlay(@NotNull @NotNull PackOverlay overlay)
      Retrieves the assets collection for a specific overlay.
      Parameters:
      overlay - the overlay
      Returns:
      the assets collection
      Since:
      1.15.2
    • metaBuilder

      @NotNull public PackMeta.Builder metaBuilder()
      Returns the builder for the pack metadata.
      Returns:
      the metadata builder
      Since:
      1.15.2
    • build

      @Internal @NotNull public @NotNull PackZipper.BuildData build()
      Builds the final pack data, including metadata and all resources.
      Returns:
      the build data
      Since:
      1.15.2
    • size

      public int size()
      Returns the total estimated number of resources.
      Returns:
      the size
      Since:
      1.15.2