Class DirectoryResourcePack

java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.DirectoryResourcePack
All Implemented Interfaces:
AutoCloseable, ResourcePack

public class DirectoryResourcePack extends AbstractFileResourcePack
Mappings:
Namespace Name
official ael
intermediary net/minecraft/class_3259
named net/minecraft/resource/DirectoryResourcePack
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lael;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_14187 Lnet/minecraft/class_3259;field_14187:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/resource/DirectoryResourcePack;LOGGER:Lorg/apache/logging/log4j/Logger;
    • IS_WINDOWS

      private static final boolean IS_WINDOWS
      Mappings:
      Namespace Name Mixin selector
      official e Lael;e:Z
      intermediary field_14186 Lnet/minecraft/class_3259;field_14186:Z
      named IS_WINDOWS Lnet/minecraft/resource/DirectoryResourcePack;IS_WINDOWS:Z
    • BACKSLASH_MATCHER

      private static final CharMatcher BACKSLASH_MATCHER
      Mappings:
      Namespace Name Mixin selector
      official f Lael;f:Lcom/google/common/base/CharMatcher;
      intermediary field_14185 Lnet/minecraft/class_3259;field_14185:Lcom/google/common/base/CharMatcher;
      named BACKSLASH_MATCHER Lnet/minecraft/resource/DirectoryResourcePack;BACKSLASH_MATCHER:Lcom/google/common/base/CharMatcher;
  • Constructor Details

    • DirectoryResourcePack

      public DirectoryResourcePack(File base)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laej;<init>(Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_3255;<init>(Ljava/io/File;)V
      named <init> Lnet/minecraft/resource/AbstractFileResourcePack;<init>(Ljava/io/File;)V
  • Method Details

    • isValidPath

      public static boolean isValidPath(File file, String filename) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lael;a(Ljava/io/File;Ljava/lang/String;)Z
      intermediary method_14402 Lnet/minecraft/class_3259;method_14402(Ljava/io/File;Ljava/lang/String;)Z
      named isValidPath Lnet/minecraft/resource/DirectoryResourcePack;isValidPath(Ljava/io/File;Ljava/lang/String;)Z
    • openFile

      protected InputStream openFile(String name) throws IOException
      Specified by:
      openFile in class AbstractFileResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Laej;a(Ljava/lang/String;)Ljava/io/InputStream;
      intermediary method_14391 Lnet/minecraft/class_3255;method_14391(Ljava/lang/String;)Ljava/io/InputStream;
      named openFile Lnet/minecraft/resource/AbstractFileResourcePack;openFile(Ljava/lang/String;)Ljava/io/InputStream;
    • containsFile

      protected boolean containsFile(String name)
      Specified by:
      containsFile in class AbstractFileResourcePack
      Mappings:
      Namespace Name Mixin selector
      official c Laej;c(Ljava/lang/String;)Z
      intermediary method_14393 Lnet/minecraft/class_3255;method_14393(Ljava/lang/String;)Z
      named containsFile Lnet/minecraft/resource/AbstractFileResourcePack;containsFile(Ljava/lang/String;)Z
    • getFile

      @Nullable private @Nullable File getFile(String name)
      Mappings:
      Namespace Name Mixin selector
      official e Lael;e(Ljava/lang/String;)Ljava/io/File;
      intermediary method_14401 Lnet/minecraft/class_3259;method_14401(Ljava/lang/String;)Ljava/io/File;
      named getFile Lnet/minecraft/resource/DirectoryResourcePack;getFile(Ljava/lang/String;)Ljava/io/File;
    • getNamespaces

      public Set<String> getNamespaces(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      official a Laem;a(Laen;)Ljava/util/Set;
      intermediary method_14406 Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
      named getNamespaces Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
    • close

      public void close()
    • findResources

      public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Laem;a(Laen;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
      intermediary method_14408 Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
    • findFiles

      private void findFiles(File file, int maxDepth, String namespace, List<Identifier> found, String prefix, Predicate<String> pathFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Lael;a(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
      intermediary method_14400 Lnet/minecraft/class_3259;method_14400(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
      named findFiles Lnet/minecraft/resource/DirectoryResourcePack;findFiles(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V