PackAssets
class 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
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
Returns the 'bettermodel' namespace (or the configured namespace).
Link copied to clipboard
Returns the 'minecraft' namespace.