Class ExportedAssetCollection<T extends RawAsset>
- java.lang.Object
-
- dev.linwood.itemmods.pack.collection.AssetCollection<T>
-
- dev.linwood.itemmods.pack.collection.SavedAssetCollection<T>
-
- dev.linwood.itemmods.pack.collection.ExportedAssetCollection<T>
-
public class ExportedAssetCollection<T extends RawAsset> extends SavedAssetCollection<T>
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.collection.AssetCollection
assets, parent
-
-
Constructor Summary
Constructors Constructor Description ExportedAssetCollection(ItemModsPack parent, java.lang.String directoryName, java.util.function.BiFunction<java.lang.String,com.google.gson.JsonElement,T> assetFactory)
ExportedAssetCollection(ItemModsPack parent, java.util.Set<T> assets, java.lang.String directoryName, java.util.function.BiFunction<java.lang.String,com.google.gson.JsonElement,T> assetFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(java.lang.String variation, java.lang.String assetName, java.nio.file.Path exportPath)
void
export(java.lang.String variation, java.nio.file.Path exportPath)
-
Methods inherited from class dev.linwood.itemmods.pack.collection.SavedAssetCollection
createDirectory, getDirectoryPath, reload, save, save
-
Methods inherited from class dev.linwood.itemmods.pack.collection.AssetCollection
clear, getAsset, getAssets, getAssetsAsList, registerAsset, stream, unregisterAsset
-
-
-
-
Constructor Detail
-
ExportedAssetCollection
public ExportedAssetCollection(ItemModsPack parent, java.lang.String directoryName, java.util.function.BiFunction<java.lang.String,com.google.gson.JsonElement,T> assetFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
ExportedAssetCollection
public ExportedAssetCollection(ItemModsPack parent, java.util.Set<T> assets, java.lang.String directoryName, java.util.function.BiFunction<java.lang.String,com.google.gson.JsonElement,T> assetFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
export
public void export(java.lang.String variation, java.nio.file.Path exportPath) throws java.io.IOException
- Throws:
java.io.IOException
-
export
public void export(java.lang.String variation, java.lang.String assetName, java.nio.file.Path exportPath) throws java.io.IOException
- Throws:
java.io.IOException
-
-