PackZipper

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

Types

Link copied to clipboard
Holds the result of a build operation.

Functions

Link copied to clipboard
@NotNull
open fun assets(): @NotNull PackAssets
Retrieves the default assets collection.
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun build(): @NotNull PackZipper.BuildData
Builds the final pack data, including metadata and all resources.
Link copied to clipboard
@NotNull
open fun legacy(): @NotNull PackAssets
Retrieves the legacy assets collection.
Link copied to clipboard
@NotNull
open fun metaBuilder(): @NotNull PackMeta.Builder
Returns the builder for the pack metadata.
Link copied to clipboard
@NotNull
open fun modern(): @NotNull PackAssets
Retrieves the modern assets' collection.
Link copied to clipboard
@NotNull
open fun overlay(@NotNull overlay: @NotNull PackOverlay): @NotNull PackAssets
Retrieves the assets collection for a specific overlay.
Link copied to clipboard
open fun size(): Int
Returns the total estimated number of resources.
Link copied to clipboard
@NotNull
open fun zipper(): @NotNull PackZipper
Creates a new PackZipper instance.