Class ZipAssetSource
java.lang.Object
dev.engine.core.asset.ZipAssetSource
- All Implemented Interfaces:
AssetSource, AutoCloseable
Asset source that reads from a ZIP/archive file.
Useful for bundled assets, Sketchfab downloads, mod packages, etc.
Paths inside the archive are relative: "textures/albedo.png" matches a ZIP entry "textures/albedo.png" or "model/textures/albedo.png" with an optional strip prefix.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AssetSource
AssetSource.AssetData -
Constructor Summary
ConstructorsConstructorDescriptionZipAssetSource(Path archivePath) ZipAssetSource(Path archivePath, String stripPrefix) -
Method Summary
-
Constructor Details
-
ZipAssetSource
-
ZipAssetSource
-
-
Method Details
-
load
- Specified by:
loadin interfaceAssetSource
-
exists
- Specified by:
existsin interfaceAssetSource
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-