Class ResourceIndex

java.lang.Object
net.minecraft.client.resource.ResourceIndex
Direct Known Subclasses:
DirectResourceIndex

@Environment(CLIENT) public class ResourceIndex extends Object
Mappings:
Namespace Name
official fbc
intermediary net/minecraft/class_1064
named net/minecraft/client/resource/ResourceIndex
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lfbc;a:Lorg/slf4j/Logger;
      intermediary field_5290 Lnet/minecraft/class_1064;field_5290:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/resource/ResourceIndex;LOGGER:Lorg/slf4j/Logger;
    • rootIndex

      private final Map<String,File> rootIndex
      Mappings:
      Namespace Name Mixin selector
      official b Lfbc;b:Ljava/util/Map;
      intermediary field_5289 Lnet/minecraft/class_1064;field_5289:Ljava/util/Map;
      named rootIndex Lnet/minecraft/client/resource/ResourceIndex;rootIndex:Ljava/util/Map;
    • namespacedIndex

      private final Map<Identifier,File> namespacedIndex
      Mappings:
      Namespace Name Mixin selector
      official c Lfbc;c:Ljava/util/Map;
      intermediary field_21556 Lnet/minecraft/class_1064;field_21556:Ljava/util/Map;
      named namespacedIndex Lnet/minecraft/client/resource/ResourceIndex;namespacedIndex:Ljava/util/Map;
  • Constructor Details

    • ResourceIndex

      protected ResourceIndex()
    • ResourceIndex

      public ResourceIndex(File directory, String indexName)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfbc;<init>(Ljava/io/File;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1064;<init>(Ljava/io/File;Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/resource/ResourceIndex;<init>(Ljava/io/File;Ljava/lang/String;)V
  • Method Details

    • getResource

      @Nullable public @Nullable File getResource(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbc;a(Lyt;)Ljava/io/File;
      intermediary method_4630 Lnet/minecraft/class_1064;method_4630(Lnet/minecraft/class_2960;)Ljava/io/File;
      named getResource Lnet/minecraft/client/resource/ResourceIndex;getResource(Lnet/minecraft/util/Identifier;)Ljava/io/File;
    • findFile

      @Nullable public @Nullable File findFile(String path)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbc;a(Ljava/lang/String;)Ljava/io/File;
      intermediary method_4631 Lnet/minecraft/class_1064;method_4631(Ljava/lang/String;)Ljava/io/File;
      named findFile Lnet/minecraft/client/resource/ResourceIndex;findFile(Ljava/lang/String;)Ljava/io/File;
    • getFilesRecursively

      public Collection<Identifier> getFilesRecursively(String prefix, String namespace, int maxDepth, Predicate<String> pathFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbc;a(Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
      intermediary method_4632 Lnet/minecraft/class_1064;method_4632(Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
      named getFilesRecursively Lnet/minecraft/client/resource/ResourceIndex;getFilesRecursively(Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;