Class VanillaPack

    • Field Detail

      • generatedDir

        public static java.nio.file.Path generatedDir
      • LOGGER

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

        public static java.lang.Class<?> clientObject
      • JAR_FILESYSTEM_BY_TYPE

        private static final java.util.Map<ResourcePackType,​java.nio.file.FileSystem> JAR_FILESYSTEM_BY_TYPE
      • namespaces

        public final java.util.Set<java.lang.String> namespaces
    • Constructor Detail

      • VanillaPack

        public VanillaPack​(java.lang.String... p_i47912_1_)
    • Method Detail

      • getRootResource

        public java.io.InputStream getRootResource​(java.lang.String p_195763_1_)
                                            throws java.io.IOException
        Specified by:
        getRootResource in interface IResourcePack
        Throws:
        java.io.IOException
      • 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_)
        Specified by:
        getResources in interface IResourcePack
      • getResources

        private static void getResources​(java.util.Collection<ResourceLocation> p_229867_0_,
                                         int p_229867_1_,
                                         java.lang.String p_229867_2_,
                                         java.nio.file.Path p_229867_3_,
                                         java.lang.String p_229867_4_,
                                         java.util.function.Predicate<java.lang.String> p_229867_5_)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • isResourceUrlValid

        private static boolean isResourceUrlValid​(java.lang.String p_223459_0_,
                                                  @Nullable
                                                  java.net.URL p_223459_1_)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getResourceAsStream

        @Nullable
        protected java.io.InputStream getResourceAsStream​(java.lang.String p_200010_1_)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface IResourcePack
      • getExtraInputStream

        private java.io.InputStream getExtraInputStream​(ResourcePackType type,
                                                        java.lang.String resource)