ModelAsset

@ApiStatus.Internal
constructor(@NotNull rawName: @NotNull String, @NotNull name: @NotNull String, @NotNull extension: @NotNull String, sizeAssume: Long, @NotNull supplier: @NotNull ModelAsset.StreamSupplier)

Internal constructor for ModelAsset.


@ApiStatus.Internal
constructor(@NotNull rawName: @NotNull String, @NotNull name: @NotNull String, sizeAssume: Long, @NotNull supplier: @NotNull ModelAsset.StreamSupplier)

Creates an asset using the default bbmodel extension.

Example: new ModelAsset("model", "model", bytes.length, supplier).

Since

3.7.0

Parameters

rawName

the original raw name or path

name

the pack-compliant model name

sizeAssume

the estimated size in bytes

supplier

the stream supplier