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 ery
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 Lery;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;
    • index

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

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

    • ResourceIndex

      protected ResourceIndex()
    • ResourceIndex

      public ResourceIndex​(File directory, String indexName)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lery;<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 File getResource​(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lery;a(Lwb;)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 File findFile​(String path)
      Mappings:
      Namespace Name Mixin selector
      official a Lery;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 Lery;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;