Class ResourceIndex

  • Direct Known Subclasses:
    FolderResourceIndex

    public class ResourceIndex
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Logger LOGGER  
      private java.util.Map<ResourceLocation,​java.io.File> namespacedFiles  
      private java.util.Map<java.lang.String,​java.io.File> rootFiles  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ResourceIndex()  
        ResourceIndex​(java.io.File p_i1047_1_, java.lang.String p_i1047_2_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile​(ResourceLocation p_188547_1_)  
      java.util.Collection<ResourceLocation> getFiles​(java.lang.String p_225639_1_, java.lang.String p_225639_2_, int p_225639_3_, java.util.function.Predicate<java.lang.String> p_225639_4_)  
      java.io.File getRootFile​(java.lang.String p_225638_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static final org.apache.logging.log4j.Logger LOGGER
      • rootFiles

        private final java.util.Map<java.lang.String,​java.io.File> rootFiles
      • namespacedFiles

        private final java.util.Map<ResourceLocation,​java.io.File> namespacedFiles
    • Constructor Detail

      • ResourceIndex

        protected ResourceIndex()
      • ResourceIndex

        public ResourceIndex​(java.io.File p_i1047_1_,
                             java.lang.String p_i1047_2_)
    • Method Detail

      • getFile

        @Nullable
        public java.io.File getFile​(ResourceLocation p_188547_1_)
      • getRootFile

        @Nullable
        public java.io.File getRootFile​(java.lang.String p_225638_1_)
      • getFiles

        public java.util.Collection<ResourceLocation> getFiles​(java.lang.String p_225639_1_,
                                                               java.lang.String p_225639_2_,
                                                               int p_225639_3_,
                                                               java.util.function.Predicate<java.lang.String> p_225639_4_)