Class ExportedAssetCollection<T extends RawAsset>

    • 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