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 exp
intermediary net/minecraft/class_1064
named net/minecraft/client/resource/ResourceIndex
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lexp;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_5290 Lnet/minecraft/class_1064;field_5290:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/resource/ResourceIndex;LOGGER:Lorg/apache/logging/log4j/Logger;
    • rootIndex

      private final Map<String,​File> rootIndex
      Mappings:
      Namespace Name Mixin selector
      official b Lexp;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 Lexp;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> Lexp;<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 Lexp;a(Lww;)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 Lexp;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 string, String string2, int int2, Predicate<String> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lexp;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;