Class PackZipper
java.lang.Object
kr.toxicity.model.api.pack.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordHolds the result of a build operation. -
Method Summary
Modifier and TypeMethodDescription@NotNull PackAssetsassets()Retrieves the default assets collection.@NotNull PackZipper.BuildDatabuild()Builds the final pack data, including metadata and all resources.@NotNull PackAssetslegacy()Retrieves the legacy assets collection.Returns the builder for the pack metadata.@NotNull PackAssetsmodern()Retrieves the modern assets' collection.@NotNull PackAssetsoverlay(@NotNull PackOverlay overlay) Retrieves the assets collection for a specific overlay.intsize()Returns the total estimated number of resources.static @NotNull PackZipperzipper()Creates a new PackZipper instance.
-
Method Details
-
zipper
Creates a new PackZipper instance.- Returns:
- a new PackZipper
- Since:
- 1.15.2
-
assets
Retrieves the default assets collection.- Returns:
- the default assets
- Since:
- 1.15.2
-
legacy
Retrieves the legacy assets collection.- Returns:
- the legacy assets
- Since:
- 1.15.2
-
modern
Retrieves the modern assets' collection.- Returns:
- the modern assets
- Since:
- 1.15.2
-
overlay
Retrieves the assets collection for a specific overlay.- Parameters:
overlay- the overlay- Returns:
- the assets collection
- Since:
- 1.15.2
-
metaBuilder
Returns the builder for the pack metadata.- Returns:
- the metadata builder
- Since:
- 1.15.2
-
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
-