PackAssets

Manages assets within a specific pack overlay.

This class provides access to namespaces (like 'bettermodel' and 'minecraft') and allows adding resources to the pack.

Since

1.15.2

Functions

Link copied to clipboard
open fun add(@NotNull path: @NotNull String, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack with unknown size.
open fun add(@NotNull paths: Array<@NotNull String>, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack using multiple path components with unknown size.
open fun add(@NotNull path: @NotNull String, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack.
open fun add(@NotNull paths: Array<@NotNull String>, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack using multiple path components.
Link copied to clipboard
@NotNull
open fun bettermodel(): @NotNull PackNamespace
Returns the 'bettermodel' namespace (or the configured namespace).
Link copied to clipboard
@NotNull
open fun minecraft(): @NotNull PackNamespace
Returns the 'minecraft' namespace.
Link copied to clipboard
@NotNull
open fun obfuscate(@NotNull namespace: @NotNull String): @NotNull String
Obfuscates the given namespace using the internal obfuscator.