of
Creates a new ModelAsset from a name and byte array using the default bbmodel extension.
Return
the created asset
Since
2.0.0
Parameters
the name of the asset
the byte array containing the model data
Creates a new ModelAsset from a name and stream supplier using the default bbmodel extension.
Return
the created asset
Since
2.0.0
Parameters
the name of the asset
the stream supplier
Creates a new ModelAsset from a name, stream supplier, and estimated size using the default bbmodel extension.
Return
the created asset
Since
2.0.0
Parameters
the name of the asset
the estimated size in bytes
the stream supplier
Creates an asset from bytes with an explicit extension.
Example: ModelAsset.of("model", "custom", bytes).
Return
the created asset
Since
3.7.0
Parameters
the pack-compliant model name
the extension without a leading dot
the model data
Throws
if the name is not pack-compliant
Creates an asset from a stream supplier with an explicit extension.
Example: ModelAsset.of("model", "custom", supplier).
Return
the created asset
Since
3.7.0
Parameters
the pack-compliant model name
the extension without a leading dot
the stream supplier
Throws
if the name is not pack-compliant
Creates an asset with an explicit extension and estimated size.
Example: ModelAsset.of("model", "custom", size, supplier).
Return
the created asset
Since
3.7.0
Parameters
the pack-compliant model name
the extension without a leading dot
the estimated size in bytes
the stream supplier
Throws
if the name is not pack-compliant
Creates a new ModelAsset from a file, inferring its extension or using bbmodel when absent.
Return
the created asset
Since
2.0.0
Parameters
the source file
Creates a new ModelAsset from a path, inferring its extension or using bbmodel when absent.
Return
the created asset
Since
2.0.0
Parameters
the source path
Throws
if an I/O error occurs