add
open fun add(@NotNull path: @NotNull String, estimatedSize: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack at the current path.
Since
1.15.2
Parameters
path
the relative path of the resource
estimatedSize
the estimated size of the resource
supplier
the supplier for the resource content
open fun add(@NotNull paths: Array<@NotNull String>, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack at the current path using multiple path components.
Since
1.15.2
Parameters
paths
the relative path components
size
the estimated size of the resource
supplier
the supplier for the resource content
Adds a resource to the pack at the current path with unknown size.
Since
1.15.2
Parameters
path
the relative path of the resource
supplier
the supplier for the resource content
open fun add(@NotNull paths: Array<@NotNull String>, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack at the current path using multiple path components with unknown size.
Since
1.15.2
Parameters
paths
the relative path components
supplier
the supplier for the resource content