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 ajl
intermediary net/minecraft/class_3259
named net/minecraft/resource/DirectoryResourcePack
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a:Lorg/slf4j/Logger;
      intermediary field_14187 Lnet/minecraft/class_3259;field_14187:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/resource/DirectoryResourcePack;LOGGER:Lorg/slf4j/Logger;
    • SEPARATOR_JOINER

      private static final Joiner SEPARATOR_JOINER
      Mappings:
      Namespace Name Mixin selector
      official d Lajl;d:Lcom/google/common/base/Joiner;
      intermediary field_40000 Lnet/minecraft/class_3259;field_40000:Lcom/google/common/base/Joiner;
      named SEPARATOR_JOINER Lnet/minecraft/resource/DirectoryResourcePack;SEPARATOR_JOINER:Lcom/google/common/base/Joiner;
    • root

      private final Path root
      Mappings:
      Namespace Name Mixin selector
      official e Lajl;e:Ljava/nio/file/Path;
      intermediary field_40001 Lnet/minecraft/class_3259;field_40001:Ljava/nio/file/Path;
      named root Lnet/minecraft/resource/DirectoryResourcePack;root:Ljava/nio/file/Path;
  • Constructor Details

    • DirectoryResourcePack

      public DirectoryResourcePack(String name, Path root, boolean alwaysStable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajl;<init>(Ljava/lang/String;Ljava/nio/file/Path;Z)V
      intermediary <init> Lnet/minecraft/class_3259;<init>(Ljava/lang/String;Ljava/nio/file/Path;Z)V
      named <init> Lnet/minecraft/resource/DirectoryResourcePack;<init>(Ljava/lang/String;Ljava/nio/file/Path;Z)V
  • Method Details

    • openRoot

      @Nullable public @Nullable InputSupplier<InputStream> openRoot(String[] segments)
      Mappings:
      Namespace Name Mixin selector
      official a Lajj;a([Ljava/lang/String;)Lakn;
      intermediary method_14410 Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
      named openRoot Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
    • isValidPath

      public static boolean isValidPath(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Ljava/nio/file/Path;)Z
      intermediary method_14402 Lnet/minecraft/class_3259;method_14402(Ljava/nio/file/Path;)Z
      named isValidPath Lnet/minecraft/resource/DirectoryResourcePack;isValidPath(Ljava/nio/file/Path;)Z
    • open

      Mappings:
      Namespace Name Mixin selector
      official a Lajj;a(Lajk;Lacq;)Lakn;
      intermediary method_14405 Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
      named open Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
    • open

      public static InputSupplier<InputStream> open(Identifier id, Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Lacq;Ljava/nio/file/Path;)Lakn;
      intermediary method_45180 Lnet/minecraft/class_3259;method_45180(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)Lnet/minecraft/class_7367;
      named open Lnet/minecraft/resource/DirectoryResourcePack;open(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)Lnet/minecraft/resource/InputSupplier;
    • open

      @Nullable private static @Nullable InputSupplier<InputStream> open(Path path)
      Mappings:
      Namespace Name Mixin selector
      official b Lajl;b(Ljava/nio/file/Path;)Lakn;
      intermediary method_45187 Lnet/minecraft/class_3259;method_45187(Ljava/nio/file/Path;)Lnet/minecraft/class_7367;
      named open Lnet/minecraft/resource/DirectoryResourcePack;open(Ljava/nio/file/Path;)Lnet/minecraft/resource/InputSupplier;
    • findResources

      public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lajj;a(Lajk;Ljava/lang/String;Ljava/lang/String;Lajj$a;)V
      intermediary method_14408 Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)V
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)V
    • findResources

      public static void findResources(String namespace, Path path, List<String> prefixSegments, ResourcePack.ResultConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Lajj$a;)V
      intermediary method_45183 Lnet/minecraft/class_3259;method_45183(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/class_3262$class_7664;)V
      named findResources Lnet/minecraft/resource/DirectoryResourcePack;findResources(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)V
    • getNamespaces

      public Set<String> getNamespaces(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      official a Lajj;a(Lajk;)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()