Class FolderPack

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • ON_WINDOWS

        private static final boolean ON_WINDOWS
      • BACKSLASH_MATCHER

        private static final com.google.common.base.CharMatcher BACKSLASH_MATCHER
    • Constructor Detail

      • FolderPack

        public FolderPack​(java.io.File p_i47914_1_)
    • Method Detail

      • validatePath

        public static boolean validatePath​(java.io.File p_195777_0_,
                                           java.lang.String p_195777_1_)
                                    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

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

        @Nullable
        private java.io.File getFile​(java.lang.String p_195776_1_)
      • getNamespaces

        public java.util.Set<java.lang.String> getNamespaces​(ResourcePackType p_195759_1_)
      • 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_)
      • listResources

        private void listResources​(java.io.File p_199546_1_,
                                   int p_199546_2_,
                                   java.lang.String p_199546_3_,
                                   java.util.List<ResourceLocation> p_199546_4_,
                                   java.lang.String p_199546_5_,
                                   java.util.function.Predicate<java.lang.String> p_199546_6_)