Class DefaultResourcePack

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

public class DefaultResourcePack extends Object implements ResourcePack
Mappings:
Namespace Name
named net/minecraft/resource/DefaultResourcePack
intermediary net/minecraft/class_3268
official atg
  • Field Details Link icon

    • LOGGER Link icon

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/resource/DefaultResourcePack;LOGGER:Lorg/slf4j/Logger;
      intermediary field_14195 Lnet/minecraft/class_3268;field_14195:Lorg/slf4j/Logger;
      official c Latg;c:Lorg/slf4j/Logger;
    • info Link icon

      private final ResourcePackInfo info
      Mappings:
      Namespace Name Mixin selector
      named info Lnet/minecraft/resource/DefaultResourcePack;info:Lnet/minecraft/resource/ResourcePackInfo;
      intermediary field_49032 Lnet/minecraft/class_3268;field_49032:Lnet/minecraft/class_9224;
      official d Latg;d:Latb;
    • metadata Link icon

      private final ResourceMetadataMap metadata
      Mappings:
      Namespace Name Mixin selector
      named metadata Lnet/minecraft/resource/DefaultResourcePack;metadata:Lnet/minecraft/resource/metadata/ResourceMetadataMap;
      intermediary field_26938 Lnet/minecraft/class_3268;field_26938:Lnet/minecraft/class_7662;
      official e Latg;e:Lasu;
    • namespaces Link icon

      private final Set<String> namespaces
      Mappings:
      Namespace Name Mixin selector
      named namespaces Lnet/minecraft/resource/DefaultResourcePack;namespaces:Ljava/util/Set;
      intermediary field_14193 Lnet/minecraft/class_3268;field_14193:Ljava/util/Set;
      official f Latg;f:Ljava/util/Set;
    • rootPaths Link icon

      private final List<Path> rootPaths
      Mappings:
      Namespace Name Mixin selector
      named rootPaths Lnet/minecraft/resource/DefaultResourcePack;rootPaths:Ljava/util/List;
      intermediary field_40002 Lnet/minecraft/class_3268;field_40002:Ljava/util/List;
      official g Latg;g:Ljava/util/List;
    • namespacePaths Link icon

      private final Map<ResourceType,List<Path>> namespacePaths
      Mappings:
      Namespace Name Mixin selector
      named namespacePaths Lnet/minecraft/resource/DefaultResourcePack;namespacePaths:Ljava/util/Map;
      intermediary field_40003 Lnet/minecraft/class_3268;field_40003:Ljava/util/Map;
      official h Latg;h:Ljava/util/Map;
  • Constructor Details Link icon

    • DefaultResourcePack Link icon

      DefaultResourcePack(ResourcePackInfo info, ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType,List<Path>> namespacePaths)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/DefaultResourcePack;<init>(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/metadata/ResourceMetadataMap;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_3268;<init>(Lnet/minecraft/class_9224;Lnet/minecraft/class_7662;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
      official <init> Latg;<init>(Latb;Lasu;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
  • Method Details Link icon

    • openRoot Link icon

      @Nullable public @Nullable InputSupplier<InputStream> openRoot(String[] segments)
      Specified by:
      openRoot in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named openRoot Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
      intermediary method_14410 Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
      official a Latc;a([Ljava/lang/String;)Lauh;
    • forEachNamespacedPath Link icon

      public void forEachNamespacedPath(ResourceType type, Identifier path, Consumer<Path> consumer)
      Mappings:
      Namespace Name Mixin selector
      named forEachNamespacedPath Lnet/minecraft/resource/DefaultResourcePack;forEachNamespacedPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
      intermediary method_45192 Lnet/minecraft/class_3268;method_45192(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
      official a Latg;a(Late;Lakv;Ljava/util/function/Consumer;)V
    • findResources Link icon

      public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer)
      Specified by:
      findResources in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)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
      official a Latc;a(Late;Ljava/lang/String;Ljava/lang/String;Latc$a;)V
    • collectIdentifiers Link icon

      private static void collectIdentifiers(ResourcePack.ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments)
      Mappings:
      Namespace Name Mixin selector
      named collectIdentifiers Lnet/minecraft/resource/DefaultResourcePack;collectIdentifiers(Lnet/minecraft/resource/ResourcePack$ResultConsumer;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
      intermediary method_14418 Lnet/minecraft/class_3268;method_14418(Lnet/minecraft/class_3262$class_7664;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
      official a Latg;a(Latc$a;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
    • open Link icon

      Specified by:
      open in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named open Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
      intermediary method_14405 Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
      official a Latc;a(Late;Lakv;)Lauh;
    • getNamespaces Link icon

      public Set<String> getNamespaces(ResourceType type)
      Specified by:
      getNamespaces in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named getNamespaces Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
      intermediary method_14406 Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
      official a Latc;a(Late;)Ljava/util/Set;
    • parseMetadata Link icon

      @Nullable public <T> T parseMetadata(ResourceMetadataSerializer<T> metadataSerializer)
      Specified by:
      parseMetadata in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named parseMetadata Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;)Ljava/lang/Object;
      intermediary method_14407 Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_7677;)Ljava/lang/Object;
      official a Latc;a(Latp;)Ljava/lang/Object;
    • getInfo Link icon

      public ResourcePackInfo getInfo()
      Specified by:
      getInfo in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      named getInfo Lnet/minecraft/resource/ResourcePack;getInfo()Lnet/minecraft/resource/ResourcePackInfo;
      intermediary method_56926 Lnet/minecraft/class_3262;method_56926()Lnet/minecraft/class_9224;
      official a Latc;a()Latb;
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ResourcePack
    • getFactory Link icon

      public ResourceFactory getFactory()
      Mappings:
      Namespace Name Mixin selector
      named getFactory Lnet/minecraft/resource/DefaultResourcePack;getFactory()Lnet/minecraft/resource/ResourceFactory;
      intermediary method_43032 Lnet/minecraft/class_3268;method_43032()Lnet/minecraft/class_5912;
      official d Latg;d()Laus;