add
open fun add(@NotNull path: @NotNull String, size: Long, @NotNull supplier: @NotNull Supplier<Array<Byte>>)
Adds a resource to the pack.
Since
1.15.2
Parameters
path
the path of the resource
size
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 using multiple path components.
Since
1.15.2
Parameters
paths
the path components
size
the estimated size of the resource
supplier
the supplier for the resource content
Adds a resource to the pack with unknown size.
Since
1.15.2
Parameters
path
the 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 using multiple path components with unknown size.
Since
1.15.2
Parameters
paths
the path components
supplier
the supplier for the resource content