Class ResourceFinder

java.lang.Object
net.minecraft.resource.ResourceFinder

public class ResourceFinder extends Object
Mappings:
Namespace Name
named net/minecraft/resource/ResourceFinder
intermediary net/minecraft/class_7654
official aky
  • Field Details

    • directoryName

      private final String directoryName
      Mappings:
      Namespace Name Mixin selector
      named directoryName Lnet/minecraft/resource/ResourceFinder;directoryName:Ljava/lang/String;
      intermediary field_39966 Lnet/minecraft/class_7654;field_39966:Ljava/lang/String;
      official a Laky;a:Ljava/lang/String;
    • fileExtension

      private final String fileExtension
      Mappings:
      Namespace Name Mixin selector
      named fileExtension Lnet/minecraft/resource/ResourceFinder;fileExtension:Ljava/lang/String;
      intermediary field_39967 Lnet/minecraft/class_7654;field_39967:Ljava/lang/String;
      official b Laky;b:Ljava/lang/String;
  • Constructor Details

    • ResourceFinder

      public ResourceFinder(String directoryName, String fileExtension)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/ResourceFinder;<init>(Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_7654;<init>(Ljava/lang/String;Ljava/lang/String;)V
      official <init> Laky;<init>(Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • json

      public static ResourceFinder json(String directoryName)
      Mappings:
      Namespace Name Mixin selector
      named json Lnet/minecraft/resource/ResourceFinder;json(Ljava/lang/String;)Lnet/minecraft/resource/ResourceFinder;
      intermediary method_45114 Lnet/minecraft/class_7654;method_45114(Ljava/lang/String;)Lnet/minecraft/class_7654;
      official a Laky;a(Ljava/lang/String;)Laky;
    • toResourcePath

      public Identifier toResourcePath(Identifier id)
      Returns an identifier that is used as a file path for locating the resource id.
      Returns:
      an identifier that is used as a file path for locating the resource id
      Mappings:
      Namespace Name Mixin selector
      named toResourcePath Lnet/minecraft/resource/ResourceFinder;toResourcePath(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
      intermediary method_45112 Lnet/minecraft/class_7654;method_45112(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
      official a Laky;a(Lalf;)Lalf;
    • toResourceId

      public Identifier toResourceId(Identifier path)
      Returns an identifier of the resource located at the file path path.
      Returns:
      an identifier of the resource located at the file path path
      Mappings:
      Namespace Name Mixin selector
      named toResourceId Lnet/minecraft/resource/ResourceFinder;toResourceId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
      intermediary method_45115 Lnet/minecraft/class_7654;method_45115(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
      official b Laky;b(Lalf;)Lalf;
    • findResources

      public Map<Identifier,Resource> findResources(ResourceManager resourceManager)
      Mappings:
      Namespace Name Mixin selector
      named findResources Lnet/minecraft/resource/ResourceFinder;findResources(Lnet/minecraft/resource/ResourceManager;)Ljava/util/Map;
      intermediary method_45113 Lnet/minecraft/class_7654;method_45113(Lnet/minecraft/class_3300;)Ljava/util/Map;
      official a Laky;a(Laup;)Ljava/util/Map;
    • findAllResources

      public Map<Identifier,List<Resource>> findAllResources(ResourceManager resourceManager)
      Mappings:
      Namespace Name Mixin selector
      named findAllResources Lnet/minecraft/resource/ResourceFinder;findAllResources(Lnet/minecraft/resource/ResourceManager;)Ljava/util/Map;
      intermediary method_45116 Lnet/minecraft/class_7654;method_45116(Lnet/minecraft/class_3300;)Ljava/util/Map;
      official b Laky;b(Laup;)Ljava/util/Map;