Class FilePack

    • Field Detail

      • SPLITTER

        public static final com.google.common.base.Splitter SPLITTER
      • zipFile

        private java.util.zip.ZipFile zipFile
    • Constructor Detail

      • FilePack

        public FilePack​(java.io.File p_i47915_1_)
    • Method Detail

      • getOrCreateZipFile

        private java.util.zip.ZipFile getOrCreateZipFile()
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getResource

        protected java.io.InputStream getResource​(java.lang.String p_195766_1_)
                                           throws java.io.IOException
        Specified by:
        getResource in class ResourcePack
        Throws:
        java.io.IOException
      • hasResource

        public boolean hasResource​(java.lang.String p_195768_1_)
        Specified by:
        hasResource in class ResourcePack
      • getNamespaces

        public java.util.Set<java.lang.String> getNamespaces​(ResourcePackType p_195759_1_)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • close

        public void close()
      • getResources

        public java.util.Collection<ResourceLocation> getResources​(ResourcePackType p_225637_1_,
                                                                   java.lang.String p_225637_2_,
                                                                   java.lang.String p_225637_3_,
                                                                   int p_225637_4_,
                                                                   java.util.function.Predicate<java.lang.String> p_225637_5_)