Class DirectResourceIndex

java.lang.Object
net.minecraft.client.resource.ResourceIndex
net.minecraft.client.resource.DirectResourceIndex

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

    • assetDir

      private final File assetDir
      Mappings:
      Namespace Name Mixin selector
      official b Lext;b:Ljava/io/File;
      intermediary field_5299 Lnet/minecraft/class_1067;field_5299:Ljava/io/File;
      named assetDir Lnet/minecraft/client/resource/DirectResourceIndex;assetDir:Ljava/io/File;
  • Constructor Details

    • DirectResourceIndex

      public DirectResourceIndex(File assetDir)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lext;<init>(Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_1067;<init>(Ljava/io/File;)V
      named <init> Lnet/minecraft/client/resource/DirectResourceIndex;<init>(Ljava/io/File;)V
  • Method Details

    • getResource

      public File getResource(Identifier identifier)
      Overrides:
      getResource in class ResourceIndex
      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

      public File findFile(String path)
      Overrides:
      findFile in class ResourceIndex
      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)
      Overrides:
      getFilesRecursively in class ResourceIndex
      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;