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 fio
intermediary net/minecraft/class_1067
named net/minecraft/client/resource/DirectResourceIndex
  • Field Details

    • field_36375

      private static final org.slf4j.Logger field_36375
      Mappings:
      Namespace Name Mixin selector
      official a Lfio;a:Lorg/slf4j/Logger;
      intermediary field_36375 Lnet/minecraft/class_1067;field_36375:Lorg/slf4j/Logger;
      named field_36375 Lnet/minecraft/client/resource/DirectResourceIndex;field_36375:Lorg/slf4j/Logger;
    • assetDir

      private final File assetDir
      Mappings:
      Namespace Name Mixin selector
      official b Lfio;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> Lfio;<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 Lfik;a(Laaj;)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 Lfik;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, Predicate<Identifier> allowedPathPredicate)
      Overrides:
      getFilesRecursively in class ResourceIndex
      Mappings:
      Namespace Name Mixin selector
      official a Lfik;a(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
      intermediary method_4632 Lnet/minecraft/class_1064;method_4632(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
      named getFilesRecursively Lnet/minecraft/client/resource/ResourceIndex;getFilesRecursively(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;