Class ResourcePack

    • Field Detail

      • LOGGER

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

        public final java.io.File file
    • Constructor Detail

      • ResourcePack

        public ResourcePack​(java.io.File p_i1287_1_)
    • Method Detail

      • getRelativePath

        protected static java.lang.String getRelativePath​(java.io.File p_195767_0_,
                                                          java.io.File p_195767_1_)
      • getResource

        protected abstract java.io.InputStream getResource​(java.lang.String p_195766_1_)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • 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
      • hasResource

        protected abstract boolean hasResource​(java.lang.String p_195768_1_)
      • logWarning

        protected void logWarning​(java.lang.String p_195769_1_)
      • getMetadataFromStream

        @Nullable
        public static <T> T getMetadataFromStream​(IMetadataSectionSerializer<T> p_195770_0_,
                                                  java.io.InputStream p_195770_1_)